tsdemux: do not discard on discont if PES start

If a discontinuity in the stream is detected, data is discarded until
a new PES starts. If the first packet after the discontinuity is also
the start of a PES, there is no reason to discard the packets.

https://bugzilla.gnome.org/show_bug.cgi?id=737569
This commit is contained in:
Jesper Larsen 2014-09-29 10:01:27 +02:00 committed by Edward Hervey
parent 29f1f4533e
commit 1b8e76d235

View file

@ -1850,7 +1850,8 @@ gst_ts_demux_queue_data (GstTSDemux * demux, TSDemuxStream * stream,
} else {
GST_WARNING ("CONTINUITY: Mismatch packet %d, stream %d",
cc, stream->continuity_counter);
stream->state = PENDING_PACKET_DISCONT;
if (stream->state != PENDING_PACKET_EMPTY)
stream->state = PENDING_PACKET_DISCONT;
}
stream->continuity_counter = cc;