[rygel] playbin: Don't start the playbin on empty uri



commit a49d82d0c0ca600c95ecb460042488ccbbf9af9d
Author: Jens Georg <mail jensge org>
Date:   Mon May 14 18:20:58 2012 +0200

    playbin: Don't start the playbin on empty uri

 src/plugins/playbin/rygel-playbin-player.vala |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/playbin/rygel-playbin-player.vala b/src/plugins/playbin/rygel-playbin-player.vala
index ddc400a..2a1ffc5 100644
--- a/src/plugins/playbin/rygel-playbin-player.vala
+++ b/src/plugins/playbin/rygel-playbin-player.vala
@@ -100,7 +100,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);
+            if (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]