mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 08:17:01 +00:00
baseparse: also account for frame size when merely scanning for frame
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=680495
This commit is contained in:
parent
2decf696e7
commit
363293731e
1 changed files with 2 additions and 2 deletions
|
@ -2148,6 +2148,8 @@ gst_base_parse_finish_frame (GstBaseParse * parse, GstBaseParseFrame * frame,
|
|||
gst_base_parse_check_upstream (parse);
|
||||
}
|
||||
|
||||
parse->priv->flushed += size;
|
||||
|
||||
if (parse->priv->scanning && frame->buffer) {
|
||||
if (!parse->priv->scanned_frame) {
|
||||
parse->priv->scanned_frame = gst_base_parse_frame_copy (frame);
|
||||
|
@ -2155,8 +2157,6 @@ gst_base_parse_finish_frame (GstBaseParse * parse, GstBaseParseFrame * frame,
|
|||
goto exit;
|
||||
}
|
||||
|
||||
parse->priv->flushed += size;
|
||||
|
||||
/* either PUSH or PULL mode arranges for adapter data */
|
||||
/* ensure output buffer */
|
||||
if (!frame->out_buffer) {
|
||||
|
|
Loading…
Reference in a new issue