Fix GStreamer# bug with loop Sounds

This commit is contained in:
Flamefire committed 2014-03-14 15:50:56 +01:00
1 parent f5cca32dd8
commit 636dbf0f96
1 file changed
+5 -2
+5 -2
View File
@@ -302,8 +302,10 @@ namespace Vocaluxe.Lib.Sound
if (_Loop)
Position = 0;
else
{
Finished = true;
Close();
Close();
}
break;
case MessageType.Error:
GException error;
@@ -312,7 +314,8 @@ namespace Vocaluxe.Lib.Sound
CLog.LogError("Gstreamer error: message" + error.Message + ", code" + error.Code + " ,debug information" + debug);
break;
case MessageType.DurationChanged:
_UpdateDuration();
if (!_QueryingDuration)
_UpdateDuration();
break;
}
msg.Unref();