From 954dd59fdd91d21cb64c9447e3a967a4d1b8ce10 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Tue, 7 Feb 2012 11:28:41 +0100 Subject: [PATCH] baseparse: bitrate mechanics should not deal with duration update ... since that is already handled by _update_duration, or should not be done altogether if the duration is determined by non-estimated means. Fixes #669502. --- libs/gst/base/gstbaseparse.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/libs/gst/base/gstbaseparse.c b/libs/gst/base/gstbaseparse.c index 93f917387d..5a730fd7a1 100644 --- a/libs/gst/base/gstbaseparse.c +++ b/libs/gst/base/gstbaseparse.c @@ -1433,14 +1433,6 @@ gst_base_parse_update_bitrates (GstBaseParse * parse, GstBaseParseFrame * frame) if ((update_min || update_avg || update_max)) gst_base_parse_post_bitrates (parse, update_min, update_avg, update_max); - /* If average bitrate changes that much and no valid (time) duration provided, - * then post a new duration message so applications can update their cached - * values */ - if (update_avg && !(parse->priv->duration_fmt == GST_FORMAT_TIME && - GST_CLOCK_TIME_IS_VALID (parse->priv->duration))) - gst_element_post_message (GST_ELEMENT (parse), - gst_message_new_duration (GST_OBJECT (parse), GST_FORMAT_TIME, -1)); - exit: return; }