projects
/
profile
/
ivi
/
rygel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e00db5
)
core: Consider non-native URIs place_holder items
author
Jens Georg
<mail@jensge.org>
Wed, 4 May 2011 11:56:30 +0000
(13:56 +0200)
committer
Jens 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
patch
|
blob
|
history
diff --git
a/src/rygel/rygel-item-creator.vala
b/src/rygel/rygel-item-creator.vala
index
8603f56
..
8abfaaf
100644
(file)
--- 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];