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:
parent
5867b69aa3
commit
74a8e966f5
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user