core: Don't trust player to set URI immediately
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Thu, 9 Dec 2010 21:13:40 +0000 (23:13 +0200)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Thu, 9 Dec 2010 21:13:40 +0000 (23:13 +0200)
This is problematic in case of playbin plugin where the underlying
playbin2 element doesn't set URI immediately so when we read the 'uri'
property immediately after writing to it, we get an empty string.

src/rygel/rygel-av-transport.vala

index 4af2adf..290befe 100644 (file)
@@ -87,8 +87,8 @@ internal class Rygel.AVTransport : Service {
         set {
             this.player.uri = value;
 
-            this.changelog.log ("CurrentTrackURI", this.uri);
-            this.changelog.log ("AVTransportURI", this.uri);
+            this.changelog.log ("CurrentTrackURI", value);
+            this.changelog.log ("AVTransportURI", value);
         }
     }