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
@ -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…
x
Reference in New Issue
Block a user