mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
mpegtsbase: Flush if we receive a discont buffer
This commit is contained in:
parent
11bc356ce7
commit
d986d24d41
1 changed files with 6 additions and 0 deletions
|
@ -1096,6 +1096,12 @@ mpegts_base_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
|
||||||
if (klass->input_done)
|
if (klass->input_done)
|
||||||
gst_buffer_ref (buf);
|
gst_buffer_ref (buf);
|
||||||
|
|
||||||
|
if (FALSE && GST_BUFFER_IS_DISCONT (buf)) {
|
||||||
|
GST_DEBUG_OBJECT (base, "Got DISCONT buffer, flushing");
|
||||||
|
mpegts_base_flush (base, FALSE);
|
||||||
|
mpegts_packetizer_flush (base->packetizer, TRUE);
|
||||||
|
}
|
||||||
|
|
||||||
mpegts_packetizer_push (base->packetizer, buf);
|
mpegts_packetizer_push (base->packetizer, buf);
|
||||||
|
|
||||||
while (res == GST_FLOW_OK) {
|
while (res == GST_FLOW_OK) {
|
||||||
|
|
Loading…
Reference in a new issue