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:
Mark Nauwelaerts 2012-07-24 13:49:36 +02:00
parent 2decf696e7
commit 363293731e

View file

@ -2148,6 +2148,8 @@ gst_base_parse_finish_frame (GstBaseParse * parse, GstBaseParseFrame * frame,
gst_base_parse_check_upstream (parse); gst_base_parse_check_upstream (parse);
} }
parse->priv->flushed += size;
if (parse->priv->scanning && frame->buffer) { if (parse->priv->scanning && frame->buffer) {
if (!parse->priv->scanned_frame) { if (!parse->priv->scanned_frame) {
parse->priv->scanned_frame = gst_base_parse_frame_copy (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; goto exit;
} }
parse->priv->flushed += size;
/* either PUSH or PULL mode arranges for adapter data */ /* either PUSH or PULL mode arranges for adapter data */
/* ensure output buffer */ /* ensure output buffer */
if (!frame->out_buffer) { if (!frame->out_buffer) {