[rygel] core: Don't trust player to set URI immediately



commit 2826482d3e1e1002901901db68f4f1b4d21c608f
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu Dec 9 23:13:40 2010 +0200

    core: Don't trust player to set URI immediately
    
    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 |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/rygel/rygel-av-transport.vala b/src/rygel/rygel-av-transport.vala
index 4af2adf..290befe 100644
--- a/src/rygel/rygel-av-transport.vala
+++ b/src/rygel/rygel-av-transport.vala
@@ -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);
         }
     }
 



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