rtpvp9depay: Don't assert on flexible mode packets
authorOlivier Crête <olivier.crete@collabora.com>
Thu, 2 Jun 2016 20:16:45 +0000 (16:16 -0400)
committerOlivier Crête <olivier.crete@collabora.com>
Thu, 2 Jun 2016 20:17:19 +0000 (16:17 -0400)
Instead just post a warning on the bus for now.

gst/rtp/gstrtpvp9depay.c

index 42e8489..3d78e64 100644 (file)
@@ -166,7 +166,12 @@ gst_rtp_vp9_depay_process (GstRTPBaseDepayload * depay, GstRTPBuffer * rtp)
   }
 
   /* flexible-mode not implemented */
-  g_assert (!f_bit);
+  if (f_bit) {
+    GST_ELEMENT_WARNING (depay, STREAM, NOT_IMPLEMENTED,
+        ("Stream type not supported"),
+        ("Depayloader does not implement flexible mode"));
+    return NULL;
+  }
 
   /* Check L optional header layer indices */
   if (l_bit) {