From 91a2a790e98b5d2025042b8b3ca79d4657ce80a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Thu, 2 Jun 2016 16:16:45 -0400 Subject: [PATCH] rtpvp9depay: Don't assert on flexible mode packets Instead just post a warning on the bus for now. --- gst/rtp/gstrtpvp9depay.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gst/rtp/gstrtpvp9depay.c b/gst/rtp/gstrtpvp9depay.c index 42e848990e..3d78e644c9 100644 --- a/gst/rtp/gstrtpvp9depay.c +++ b/gst/rtp/gstrtpvp9depay.c @@ -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) {