core: Consider non-native URIs place_holder items
authorJens Georg <mail@jensge.org>
Wed, 4 May 2011 11:56:30 +0000 (13:56 +0200)
committerJens Georg <mail@jensge.org>
Thu, 19 May 2011 13:57:07 +0000 (15:57 +0200)
If there was no <res> in the DIDL, we consider them as place_holder
as well.

src/rygel/rygel-item-creator.vala

index 8603f56..8abfaaf 100644 (file)
@@ -133,6 +133,10 @@ internal class Rygel.ItemCreator: GLib.Object, Rygel.StateMachine {
             if (this.item.uris.size == 0) {
                 var uri = yield this.create_uri (container, this.item.title);
                 this.item.uris.add (uri);
+                this.item.place_holder = true;
+            } else {
+                var file = File.new_for_uri (this.item.uris[0]);
+                this.item.place_holder = !file.is_native ();
             }
 
             this.item.id = this.item.uris[0];