[rygel] external: Item should keep ref of dummy parent
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] external: Item should keep ref of dummy parent
- Date: Tue, 10 Aug 2010 21:24:50 +0000 (UTC)
commit 5556293c2e104c8fea9214695d80f1d8295d607c
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Aug 11 00:20:49 2010 +0300
external: Item should keep ref of dummy parent
Item should keep parent's ref if parent is a dummy container.
.../external/rygel-external-item-factory.vala | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/external/rygel-external-item-factory.vala b/src/plugins/external/rygel-external-item-factory.vala
index 3580c6e..894d5f2 100644
--- a/src/plugins/external/rygel-external-item-factory.vala
+++ b/src/plugins/external/rygel-external-item-factory.vala
@@ -51,6 +51,9 @@ public class Rygel.External.ItemFactory {
}
var item = new MediaItem (id, parent, title, upnp_class);
+ if (parent is DummyContainer) {
+ item.parent_ref = parent;
+ }
var value = props.lookup ("MIMEType");
item.mime_type = value.get_string ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]