[rygel] core: Make sure <title> is first element in DIDL



commit da3bb18341fc89b7a19a2bf35816257b64dd0226
Author: Jens Georg <mail jensge org>
Date:   Fri Jul 15 17:23:41 2011 +0200

    core: Make sure <title> is first element in DIDL
    
    Otherwise UPnP CTT AV-CD:1-4.1 has a reason more to fail.

 src/rygel/rygel-media-container.vala |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/rygel/rygel-media-container.vala b/src/rygel/rygel-media-container.vala
index 543061c..0cc5c44 100644
--- a/src/rygel/rygel-media-container.vala
+++ b/src/rygel/rygel-media-container.vala
@@ -151,10 +151,6 @@ public abstract class Rygel.MediaContainer : MediaObject {
             didl_container.parent_id = this.parent.id;
         } else {
             didl_container.parent_id = "-1";
-            if (this is SearchableContainer) {
-                (this as SearchableContainer).serialize_search_parameters
-                                        (didl_container);
-            }
         }
 
         didl_container.id = this.id;
@@ -164,6 +160,11 @@ public abstract class Rygel.MediaContainer : MediaObject {
         didl_container.searchable = this is SearchableContainer;
         didl_container.storage_used = this.storage_used;
 
+        if (this.parent == null && (this is SearchableContainer)) {
+            (this as SearchableContainer).serialize_search_parameters
+                                        (didl_container);
+        }
+
         if (!this.restricted) {
             didl_container.restricted = false;
             didl_container.dlna_managed = this.ocm_flags;



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