playbin: Save URI ourselves
authorJens Georg <mail@jensge.org>
Wed, 23 May 2012 14:28:33 +0000 (16:28 +0200)
committerJens Georg <mail@jensge.org>
Tue, 3 Jul 2012 07:53:48 +0000 (09:53 +0200)
Getting the current URI from the playbin only seems to work if its state is
not NULL.

src/plugins/playbin/rygel-playbin-player.vala

index 6b160c9..60919af 100644 (file)
@@ -120,12 +120,14 @@ public class Rygel.Playbin.Player : GLib.Object, Rygel.MediaPlayer {
 
     private string transfer_mode = null;
 
+    private string? _uri = null;
     public string? uri {
         owned get {
-            return this.playbin.uri;
+            return _uri;
         }
 
         set {
+            this._uri = value;
             this.playbin.set_state (State.READY);
             this.playbin.uri = value;
             if (value != "") {