summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a47fcf7)
raw | patch | inline | side by side (parent: a47fcf7)
author | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | |
Tue, 7 Feb 2012 10:28:41 +0000 (11:28 +0100) | ||
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | |
Sat, 11 Feb 2012 16:15:22 +0000 (16:15 +0000) |
... 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.
altogether if the duration is determined by non-estimated means.
Fixes #669502.
libs/gst/base/gstbaseparse.c | patch | blob | history |
index 5776454701de06224fd68b2b5a5df2b2ddf412fe..2df84c852946cde0ceb6e8c849fe1dababca90be 100644 (file)
@@ -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;
}