[banshee] GStreamer: Stop iterating on EndOfStream
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] GStreamer: Stop iterating on EndOfStream
- Date: Fri, 18 Feb 2011 16:21:45 +0000 (UTC)
commit 6987245676ae38b50ec4d9ac3c52c071caaaaf36
Author: Gabriel Burt <gabriel burt gmail com>
Date: Fri Feb 18 10:20:29 2011 -0600
GStreamer: Stop iterating on EndOfStream
We were keeping iterating, so that the position label would say "0:00 of
0:00" instead of "Idle".
.../Banshee.GStreamer/PlayerEngine.cs | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/Backends/Banshee.GStreamer/Banshee.GStreamer/PlayerEngine.cs b/src/Backends/Banshee.GStreamer/Banshee.GStreamer/PlayerEngine.cs
index 86604cf..457afb3 100644
--- a/src/Backends/Banshee.GStreamer/Banshee.GStreamer/PlayerEngine.cs
+++ b/src/Backends/Banshee.GStreamer/Banshee.GStreamer/PlayerEngine.cs
@@ -303,6 +303,7 @@ namespace Banshee.GStreamer
private void OnEos (IntPtr player)
{
+ StopIterating ();
Close (false);
OnEventChanged (PlayerEvent.EndOfStream);
if (!next_track_pending) {
@@ -337,6 +338,7 @@ namespace Banshee.GStreamer
{
if (iterate_timeout_id > 0) {
GLib.Source.Remove (iterate_timeout_id);
+ iterate_timeout_id = 0;
}
iterate_timeout_id = GLib.Timeout.Add (200, OnIterate);
@@ -346,6 +348,7 @@ namespace Banshee.GStreamer
{
if (iterate_timeout_id > 0) {
GLib.Source.Remove (iterate_timeout_id);
+ iterate_timeout_id = 0;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]