From: Mark Nauwelaerts Date: Tue, 24 Jul 2012 11:49:36 +0000 (+0200) Subject: baseparse: also account for frame size when merely scanning for frame X-Git-Tag: RELEASE-0.11.93~50 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=363293731e401fb7a37451048c517de9db0b21ff;p=platform%2Fupstream%2Fgstreamer.git baseparse: also account for frame size when merely scanning for frame Fixes https://bugzilla.gnome.org/show_bug.cgi?id=680495 --- diff --git a/libs/gst/base/gstbaseparse.c b/libs/gst/base/gstbaseparse.c index f25bbbd..f86f4b5 100644 --- a/libs/gst/base/gstbaseparse.c +++ b/libs/gst/base/gstbaseparse.c @@ -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) {