From e04be18c49b13a55b7c215cc3545d507ceb6882b Mon Sep 17 00:00:00 2001 From: Hosang Lee Date: Wed, 17 Jun 2020 10:57:00 +0900 Subject: mssdemux: ignore unrecognized stream Only create pads for steams with caps that can be recognized from the fourcc. Part-of: --- ext/smoothstreaming/gstmssdemux.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ext/smoothstreaming') 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", -- cgit v1.2.1