rygel r646 - trunk/src/rygel
- From: zeeshanak svn gnome org
- To: svn-commits-list gnome org
- Subject: rygel r646 - trunk/src/rygel
- Date: Mon, 9 Mar 2009 12:54:49 +0000 (UTC)
Author: zeeshanak
Date: Mon Mar 9 12:54:48 2009
New Revision: 646
URL: http://svn.gnome.org/viewvc/rygel?rev=646&view=rev
Log:
It's root container if it's parent is 'null'.
Fixes bug#574604.
Modified:
trunk/src/rygel/rygel-didl-lite-writer.vala
Modified: trunk/src/rygel/rygel-didl-lite-writer.vala
==============================================================================
--- trunk/src/rygel/rygel-didl-lite-writer.vala (original)
+++ trunk/src/rygel/rygel-didl-lite-writer.vala Mon Mar 9 12:54:48 2009
@@ -126,8 +126,16 @@
}
private void serialize_container (MediaContainer container) throws Error {
+ string parent_id;
+
+ if (container.parent != null) {
+ parent_id = container.parent.id;
+ } else {
+ parent_id = "-1";
+ }
+
this.start_container (container.id,
- container.parent.id,
+ parent_id,
(int) container.child_count,
false,
false);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]