Commit 36329373 authored by Mark Nauwelaerts's avatar Mark Nauwelaerts

baseparse: also account for frame size when merely scanning for frame

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=680495
parent 2decf696
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment