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:
parent
1cf3cae5e1
commit
e04be18c49
@ -358,6 +358,14 @@ _create_pad (GstMssDemux * mssdemux, GstMssStream * manifeststream)
|
|||||||
GstPad *srcpad = NULL;
|
GstPad *srcpad = NULL;
|
||||||
GstMssStreamType streamtype;
|
GstMssStreamType streamtype;
|
||||||
GstPadTemplate *tmpl = NULL;
|
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);
|
streamtype = gst_mss_stream_get_type (manifeststream);
|
||||||
GST_DEBUG_OBJECT (mssdemux, "Found stream of type: %s",
|
GST_DEBUG_OBJECT (mssdemux, "Found stream of type: %s",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user