Commit 07eff443 authored by Mark Nauwelaerts's avatar Mark Nauwelaerts Committed by Tim-Philipp Müller
Browse files

baseparse: immediately post subclass provided bitrate

parent a4f5db70
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment