[rygel] core: Consider non-native URIs place_holder items



commit d2846c6b7b1444b71696e1db0a5d0f385143146e
Author: Jens Georg <mail jensge org>
Date:   Wed May 4 13:56:30 2011 +0200

    core: Consider non-native URIs place_holder items
    
    If there was no <res> in the DIDL, we consider them as place_holder
    as well.

 src/rygel/rygel-item-creator.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/rygel/rygel-item-creator.vala b/src/rygel/rygel-item-creator.vala
index 8603f56..8abfaaf 100644
--- a/src/rygel/rygel-item-creator.vala
+++ b/src/rygel/rygel-item-creator.vala
@@ -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];



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