From 74a8e966f56ed0b51b5e3c9defe4009cd9e6b6c8 Mon Sep 17 00:00:00 2001 From: Janne Grunau Date: Mon, 21 Mar 2011 18:54:46 +0100 Subject: [PATCH] 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. --- gst/mpegtsdemux/mpegtsbase.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/mpegtsdemux/mpegtsbase.c b/gst/mpegtsdemux/mpegtsbase.c index 8eb89bff2b..44a31a8414 100644 --- a/gst/mpegtsdemux/mpegtsbase.c +++ b/gst/mpegtsdemux/mpegtsbase.c @@ -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; }