From 636dbf0f961e9b4b808ae0d2e9b4bf8c1bd0596b Mon Sep 17 00:00:00 2001 From: Flamefire Date: Fri, 14 Mar 2014 15:50:56 +0100 Subject: [PATCH] Fix GStreamer# bug with loop Sounds --- Vocaluxe/Lib/Sound/CGstreamerSharpAudio.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Vocaluxe/Lib/Sound/CGstreamerSharpAudio.cs b/Vocaluxe/Lib/Sound/CGstreamerSharpAudio.cs index 84e2226c..da0e2ca0 100644 --- a/Vocaluxe/Lib/Sound/CGstreamerSharpAudio.cs +++ b/Vocaluxe/Lib/Sound/CGstreamerSharpAudio.cs @@ -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();