mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2822>
This commit is contained in:
parent
e9a642feb8
commit
f7e75a0208
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue