mpegtsbase: Don't hard-flush the packetizer on discont buffers

Doing a hard flush on the packetizer will drop all observations, which
will eventually break push-based seeking (with BYTES segment) since
we won't know where to seek to anymore (new data would always be
considered as the beginning of the stream).
This commit is contained in:
Edward Hervey 2014-04-18 16:18:01 +02:00
parent 3d6265a9f5
commit da74a23c1d

View file

@ -1115,7 +1115,7 @@ mpegts_base_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
return res;
mpegts_base_flush (base, FALSE);
mpegts_packetizer_flush (base->packetizer, TRUE);
mpegts_packetizer_flush (base->packetizer, FALSE);
}
mpegts_packetizer_push (base->packetizer, buf);