mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
decodebin: consider "no demuxer" case to not have dynamic pads
This fixes a possible NULL dereference. Coverity 1195146
This commit is contained in:
parent
ea176f3865
commit
9e99a1ca41
1 changed files with 1 additions and 1 deletions
|
@ -1528,7 +1528,7 @@ analyze_new_pad (GstDecodeBin * dbin, GstElement * src, GstPad * pad,
|
|||
/* If this is not a dynamic pad demuxer, we're no-more-pads
|
||||
* already before anything else happens
|
||||
*/
|
||||
if (!demux->no_more_pads_id)
|
||||
if (demux == NULL || !demux->no_more_pads_id)
|
||||
group->no_more_pads = TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue