media-engine: Don't crash on missing RTP depayloader
authorJens Georg <jensg@openismus.com>
Fri, 14 Jun 2013 20:10:11 +0000 (22:10 +0200)
committerJens Georg <jensg@openismus.com>
Fri, 14 Jun 2013 20:10:11 +0000 (22:10 +0200)
src/media-engines/gstreamer/rygel-gst-utils.vala

index d7b3dd8..af664c1 100644 (file)
@@ -103,6 +103,9 @@ internal abstract class Rygel.GstUtils {
                                                caps,
                                                PadDirection.SINK,
                                                false);
+        if (features == null) {
+            return null;
+        }
 
         // If most "fitting" depayloader was rtpdepay skip it because it is
         // just some kind of proxy.