[rygel] playbin: Stop pipeline while changing playbin URI



commit 4ca7f0a70c6dd83e58f3d676f3b1d5ccce163e00
Author: Jens Georg <mail jensge org>
Date:   Thu Sep 8 23:15:59 2011 +0200

    playbin: Stop pipeline while changing playbin URI
    
    Fixes http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=638006

 src/plugins/playbin/rygel-playbin-player.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/playbin/rygel-playbin-player.vala b/src/plugins/playbin/rygel-playbin-player.vala
index 2173e0c..9ed6921 100644
--- a/src/plugins/playbin/rygel-playbin-player.vala
+++ b/src/plugins/playbin/rygel-playbin-player.vala
@@ -88,7 +88,9 @@ public class Rygel.Playbin.Player : GLib.Object, Rygel.MediaPlayer {
         }
 
         set {
+            this.playbin.set_state (State.NULL);
             this.playbin.uri = value;
+            this.playbin.set_state (State.PLAYING);
             debug ("URI set to %s.", value);
         }
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]