mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
baseparse: track consumed input size
... as used by subsequent input data rate estimation (and seeking).
This commit is contained in:
parent
63ba55865c
commit
d148569cd4
1 changed files with 3 additions and 0 deletions
|
@ -2224,6 +2224,9 @@ gst_base_parse_finish_frame (GstBaseParse * parse, GstBaseParseFrame * frame,
|
||||||
gst_buffer_unref (frame->out_buffer);
|
gst_buffer_unref (frame->out_buffer);
|
||||||
frame->out_buffer = NULL;
|
frame->out_buffer = NULL;
|
||||||
|
|
||||||
|
/* mark input size consumed */
|
||||||
|
frame->size = size;
|
||||||
|
|
||||||
/* subclass might queue frames/data internally if it needs more
|
/* subclass might queue frames/data internally if it needs more
|
||||||
* frames to decide on the format, or might request us to queue here. */
|
* frames to decide on the format, or might request us to queue here. */
|
||||||
if (frame->flags & GST_BASE_PARSE_FRAME_FLAG_DROP) {
|
if (frame->flags & GST_BASE_PARSE_FRAME_FLAG_DROP) {
|
||||||
|
|
Loading…
Reference in a new issue