mpegtsdemux: fix playback if PMT is seen before PAT

The stream for the PMT pid has to be cleared since the version checking
in the packetizer won't emit the same PMT again otherwise.
This commit is contained in:
Janne Grunau 2011-03-21 18:54:46 +01:00 committed by Edward Hervey
parent 5867b69aa3
commit 74a8e966f5

View file

@ -697,6 +697,8 @@ mpegts_base_apply_pmt (MpegTSBase * base,
if (G_UNLIKELY (base->first_pat_offset == -1)) {
GST_WARNING ("Got pmt without pat first. Returning");
/* remove the stream since we won't get another PMT otherwise */
mpegts_packetizer_remove_stream (base->packetizer, pmt_pid);
return;
}