baseparse: immediately post subclass provided bitrate

This commit is contained in:
Mark Nauwelaerts 2010-10-11 17:36:19 +02:00 committed by Tim-Philipp Müller
parent 4a7f899f6e
commit 0edaf8470e

View file

@ -1130,6 +1130,9 @@ gst_base_parse_update_bitrates (GstBaseParse * parse, GstBuffer * buffer)
/* override if subclass provided bitrate, e.g. metadata based */
if (parse->priv->bitrate) {
parse->priv->avg_bitrate = parse->priv->bitrate;
/* spread this (confirmed) info ASAP */
if (parse->priv->posted_avg_bitrate != parse->priv->avg_bitrate)
gst_base_parse_post_bitrates (parse, FALSE, TRUE, FALSE);
}
frame_bitrate = (8 * data_len * GST_SECOND) / frame_dur;