renderer: Prevent critical on empty features
authorJens Georg <jensg@openismus.com>
Thu, 31 Jan 2013 21:20:14 +0000 (22:20 +0100)
committerJens Georg <jensg@openismus.com>
Thu, 31 Jan 2013 21:20:25 +0000 (22:20 +0100)
src/librygel-renderer/rygel-av-transport.vala

index ccdd681..616cd09 100644 (file)
@@ -686,8 +686,8 @@ internal class Rygel.AVTransport : Service {
         return result;
     }
 
-    private bool is_playlist (string mime, string features) {
-        return mime == "text/xml" &&
+    private bool is_playlist (string mime, string? features) {
+        return mime == "text/xml" && features != null &&
                features.has_prefix ("DLNA.ORG_PN=DIDL_S");
     }
 }