mssdemux: ignore unrecognized stream

Only create pads for steams with caps that can be recognized
from the fourcc.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1348>
This commit is contained in:
Hosang Lee 2020-06-17 10:57:00 +09:00 committed by GStreamer Merge Bot
parent 1cf3cae5e1
commit e04be18c49

View file

@ -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",