decodebin: consider "no demuxer" case to not have dynamic pads

This fixes a possible NULL dereference.

Coverity 1195146
This commit is contained in:
Vincent Penquerc'h 2014-04-10 13:34:58 +01:00
parent ea176f3865
commit 9e99a1ca41

View file

@ -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;
}