tsdemux: Protect against program being removed

This commit is contained in:
Edward Hervey 2011-05-30 13:01:20 +02:00
parent 8aebdeb35d
commit ffc9303c9d

View file

@ -763,7 +763,7 @@ gst_ts_demux_program_stopped (MpegTSBase * base, MpegTSBaseProgram * program)
GST_LOG ("program %d stopped", program->program_number);
if (program != demux->program)
if (demux->program == NULL || program != demux->program)
return;
for (i = 0; i < 0x2000; i++) {