diff options
author | Hosang Lee <hosang10.lee@lge.com> | 2020-06-17 10:57:00 +0900 |
---|---|---|
committer | GStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2020-06-17 06:48:18 +0000 |
commit | e04be18c49b13a55b7c215cc3545d507ceb6882b (patch) | |
tree | 8e333badf4736a40be41c3c8ff59eb4c2d84689b /ext/smoothstreaming | |
parent | 1cf3cae5e1e35c2e8eb8a919db77f2970e743676 (diff) | |
download | gstreamer-plugins-bad-e04be18c49b13a55b7c215cc3545d507ceb6882b.tar.gz |
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>
Diffstat (limited to 'ext/smoothstreaming')
-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", |