From f7e75a0208ba3fe5dbccf16511bfec29f0ba2346 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 1 Aug 2022 17:25:56 +0200 Subject: [PATCH] parsebin: Avoid crash with unknown streams With the new addition of handling unknown sream types we *could* end up with a chain which doesn't have a current_pad (it's an intermediary one) Fixes #1287 Part-of: --- subprojects/gst-plugins-base/gst/playback/gstparsebin.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/subprojects/gst-plugins-base/gst/playback/gstparsebin.c b/subprojects/gst-plugins-base/gst/playback/gstparsebin.c index d848094..0f442b2 100644 --- a/subprojects/gst-plugins-base/gst/playback/gstparsebin.c +++ b/subprojects/gst-plugins-base/gst/playback/gstparsebin.c @@ -3774,6 +3774,9 @@ gst_parse_chain_expose (GstParseChain * chain, GList ** endpads, if (!group) { GstParsePad *p = chain->current_pad; + if (!p) + return FALSE; + if (p->active_stream && p->active_collection == NULL && !p->in_a_fallback_collection) *uncollected_streams = TRUE; -- 2.7.4