Fix delay test
This commit is contained in:
1 parent
d1e4675c5c
commit
7e104f7167
2 files changed
+3
-3
No files matched your search
@@ -175,7 +175,7 @@ namespace Vocaluxe.Lib.Sound.Playback.GstreamerSharp
|
||||
// Passing CLOCK_TIME_NONE here causes the pipeline to block for a long time so with
|
||||
// prescan enabled the pipeline will wait 500ms for stream to initialize and then continue
|
||||
// if it takes more than 500ms, duration queries will be performed asynchronously
|
||||
Message msg = _Element.Bus.TimedPopFiltered(prescan ? ulong.MaxValue : 0L, MessageType.AsyncDone | MessageType.Error);
|
||||
Message msg = _Element.Bus.TimedPopFiltered(prescan ? ulong.MaxValue : 0L, MessageType.AsyncDone | MessageType.Error | MessageType.DurationChanged);
|
||||
if (!_OnMessage(msg))
|
||||
{
|
||||
_Dispose(true);
|
||||
@@ -237,7 +237,7 @@ namespace Vocaluxe.Lib.Sound.Playback.GstreamerSharp
|
||||
|
||||
private bool _OnMessage(Message msg)
|
||||
{
|
||||
if (msg.Handle == IntPtr.Zero)
|
||||
if (msg == null || msg.Handle == IntPtr.Zero)
|
||||
return true;
|
||||
switch (msg.Type)
|
||||
{
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace Vocaluxe.Screens
|
||||
|
||||
public override EMusicType CurrentMusicType
|
||||
{
|
||||
get { return EMusicType.None; }
|
||||
get { return EMusicType.Game; }
|
||||
}
|
||||
|
||||
public override void Init()
|
||||
|
||||
Reference in new issue
Block a user