diff options
-rw-r--r-- | ext/smoothstreaming/gstmssdemux.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/smoothstreaming/gstmssdemux.c b/ext/smoothstreaming/gstmssdemux.c index bcea8ca07..3e9a3750b 100644 --- a/ext/smoothstreaming/gstmssdemux.c +++ b/ext/smoothstreaming/gstmssdemux.c @@ -358,6 +358,14 @@ _create_pad (GstMssDemux * mssdemux, GstMssStream * manifeststream) GstPad *srcpad = NULL; GstMssStreamType streamtype; GstPadTemplate *tmpl = NULL; + GstCaps *caps = NULL; + + caps = gst_mss_stream_get_caps (manifeststream); + + if (!caps) { + GST_WARNING_OBJECT (mssdemux, "not creating pad for unrecognized stream"); + return NULL; + } streamtype = gst_mss_stream_get_type (manifeststream); GST_DEBUG_OBJECT (mssdemux, "Found stream of type: %s", |