[rygel-grilo] Set root's Parent to itself



commit df3a87abb29222666fb6017f4e4ccb09de1eb664
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Mon May 24 15:46:09 2010 +0200

    Set root's Parent to itself
    
    Previously, root's parent was "".
    
    But it changed in last review of spec.

 src/rygel-grilo.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/rygel-grilo.c b/src/rygel-grilo.c
index 98c880f..e98f957 100644
--- a/src/rygel-grilo.c
+++ b/src/rygel-grilo.c
@@ -508,10 +508,10 @@ fill_other_properties_table (MS1Server *server,
   guint _item_count;
 
   for (key = keys; key; key = g_list_next (key)) {
-    if (g_strcmp0 (key->data, MS1_PROP_PARENT) == 0 && parent_id) {
+    if (g_strcmp0 (key->data, MS1_PROP_PARENT) == 0) {
       ms1_server_set_parent (server,
                              properties_table,
-                             parent_id);
+                             parent_id? parent_id: MS1_ROOT);
     } else if (g_strcmp0 (key->data, MS1_PROP_TYPE) == 0) {
       if (GRL_IS_MEDIA_BOX (media)) {
         ms1_server_set_item_type (server,



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