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:
parent
29f1f4533e
commit
1b8e76d235
@ -1850,7 +1850,8 @@ gst_ts_demux_queue_data (GstTSDemux * demux, TSDemuxStream * stream,
|
|||||||
} else {
|
} else {
|
||||||
GST_WARNING ("CONTINUITY: Mismatch packet %d, stream %d",
|
GST_WARNING ("CONTINUITY: Mismatch packet %d, stream %d",
|
||||||
cc, stream->continuity_counter);
|
cc, stream->continuity_counter);
|
||||||
stream->state = PENDING_PACKET_DISCONT;
|
if (stream->state != PENDING_PACKET_EMPTY)
|
||||||
|
stream->state = PENDING_PACKET_DISCONT;
|
||||||
}
|
}
|
||||||
stream->continuity_counter = cc;
|
stream->continuity_counter = cc;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user