From 9394662f35c913f101d2e80bf65578add4d79acd Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Mon, 11 Oct 2010 17:49:46 +0200 Subject: [PATCH] baseparse: perform bitrate handling and posting after newsegment sending --- gst/audioparsers/gstbaseparse.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gst/audioparsers/gstbaseparse.c b/gst/audioparsers/gstbaseparse.c index ed8d93a..80a346b 100644 --- a/gst/audioparsers/gstbaseparse.c +++ b/gst/audioparsers/gstbaseparse.c @@ -1395,8 +1395,6 @@ gst_base_parse_push_buffer (GstBaseParse * parse, GstBuffer * buffer) (parse->priv->framecount % parse->priv->update_interval) == 0) gst_base_parse_update_duration (parse); - gst_base_parse_update_bitrates (parse, buffer); - if (GST_BUFFER_TIMESTAMP_IS_VALID (buffer)) last_start = last_stop = GST_BUFFER_TIMESTAMP (buffer); if (last_start != GST_CLOCK_TIME_NONE @@ -1498,6 +1496,10 @@ gst_base_parse_push_buffer (GstBaseParse * parse, GstBuffer * buffer) } } + /* update bitrates and optionally post corresponding tags + * (following newsegment) */ + gst_base_parse_update_bitrates (parse, buffer); + if (G_UNLIKELY (parse->priv->pending_events)) { GList *l; -- 2.7.4