mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 11:10:37 +00:00
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
1 changed files with 8 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue