rygel r598 - trunk/src/rygel



Author: zeeshanak
Date: Sat Feb 14 15:33:51 2009
New Revision: 598
URL: http://svn.gnome.org/viewvc/rygel?rev=598&view=rev

Log:
return a empty list rather than null.

Fixes a crash in case of items providing HTTP URIs.

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	Sat Feb 14 15:33:51 2009
@@ -164,11 +164,11 @@
     private ArrayList<DIDLLiteResource?>? get_transcoded_resources
                                             (MediaItem        item,
                                              DIDLLiteResource orig_res) {
-        if (orig_res.protocol == "http-get")
-            return null;
-
         var resources = new ArrayList<DIDLLiteResource?> ();
 
+        if (orig_res.protocol == "http-get")
+            return resources;
+
         // Copy the original res first
         DIDLLiteResource res = orig_res;
 



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