Fix GStreamer# bug with loop Sounds
This commit is contained in:
1 parent
f5cca32dd8
commit
636dbf0f96
1 file changed
+5
-2
@@ -302,8 +302,10 @@ namespace Vocaluxe.Lib.Sound
|
|||||||
if (_Loop)
|
if (_Loop)
|
||||||
Position = 0;
|
Position = 0;
|
||||||
else
|
else
|
||||||
|
{
|
||||||
Finished = true;
|
Finished = true;
|
||||||
Close();
|
Close();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case MessageType.Error:
|
case MessageType.Error:
|
||||||
GException error;
|
GException error;
|
||||||
@@ -312,7 +314,8 @@ namespace Vocaluxe.Lib.Sound
|
|||||||
CLog.LogError("Gstreamer error: message" + error.Message + ", code" + error.Code + " ,debug information" + debug);
|
CLog.LogError("Gstreamer error: message" + error.Message + ", code" + error.Code + " ,debug information" + debug);
|
||||||
break;
|
break;
|
||||||
case MessageType.DurationChanged:
|
case MessageType.DurationChanged:
|
||||||
_UpdateDuration();
|
if (!_QueryingDuration)
|
||||||
|
_UpdateDuration();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
msg.Unref();
|
msg.Unref();
|
||||||
|
|||||||
Reference in new issue
Block a user