[rygel] external: Work around (vala) bug#602003



commit 6947c13ec98cbe78c128a337a5586cf1db555f2f
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Mon Nov 16 02:07:38 2009 +0200

    external: Work around (vala) bug#602003
    
    Seems only basic types are correctly handle in variant return values and
    that doesn't include string arrays.

 .../external/rygel-external-item-factory.vala      |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/external/rygel-external-item-factory.vala b/src/plugins/external/rygel-external-item-factory.vala
index bd84bf6..97b8d00 100644
--- a/src/plugins/external/rygel-external-item-factory.vala
+++ b/src/plugins/external/rygel-external-item-factory.vala
@@ -84,8 +84,12 @@ public class Rygel.ExternalItemFactory {
         value = item_props.lookup ("MIMEType");
         item.mime_type = value.get_string ();
 
-        value = item_props.lookup ("URLs");
-        weak string[] uris = (string[]) value.get_boxed ();
+        // FIXME: Get this value through the props until bug#602003 is fixed
+        // value = item_props.lookup ("URLs");
+        var item_iface = connection.get_object (parent.service_name,
+                                                object_path)
+                                                as ExternalMediaItem;
+        string[] uris = item_iface.urls;
 
         for (var i = 0; uris[i] != null; i++) {
             var tmp = uris[i].replace ("@ADDRESS@", parent.host_ip);



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