rygel r365 - trunk/src/rygel



Author: zeeshanak
Date: Thu Dec 25 11:59:26 2008
New Revision: 365
URL: http://svn.gnome.org/viewvc/rygel?rev=365&view=rev

Log:
Add the original res at the end of the DIDL.

For compatibility with crappy MediaRenderers just takes the first res
from the DIDL rather than the one they can handle.

Modified:
   trunk/src/rygel/rygel-media-item.vala

Modified: trunk/src/rygel/rygel-media-item.vala
==============================================================================
--- trunk/src/rygel/rygel-media-item.vala	(original)
+++ trunk/src/rygel/rygel-media-item.vala	Thu Dec 25 11:59:26 2008
@@ -142,14 +142,15 @@
         res.width = width;
         res.height = height;
 
-        didl_writer.add_res (res);
-
         /* Now get the transcoded/proxy URIs */
         var res_list = this.get_transcoded_resources (res);
-        foreach (DIDLLiteResource res in res_list) {
-            didl_writer.add_res (res);
+        foreach (DIDLLiteResource trans_res in res_list) {
+            didl_writer.add_res (trans_res);
         }
 
+        /* Add the original res in the end */
+        didl_writer.add_res (res);
+
         /* End of item */
         didl_writer.end_item ();
     }



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