mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
baseparse: immediately post subclass provided bitrate
This commit is contained in:
parent
4a7f899f6e
commit
0edaf8470e
1 changed files with 3 additions and 0 deletions
|
@ -1130,6 +1130,9 @@ gst_base_parse_update_bitrates (GstBaseParse * parse, GstBuffer * buffer)
|
||||||
/* override if subclass provided bitrate, e.g. metadata based */
|
/* override if subclass provided bitrate, e.g. metadata based */
|
||||||
if (parse->priv->bitrate) {
|
if (parse->priv->bitrate) {
|
||||||
parse->priv->avg_bitrate = 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;
|
frame_bitrate = (8 * data_len * GST_SECOND) / frame_dur;
|
||||||
|
|
Loading…
Reference in a new issue