mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue