baseparse: Don't add calculated bitrates until threshold
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Tue, 5 Jul 2016 10:17:18 +0000 (12:17 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 5 Jul 2016 16:42:38 +0000 (19:42 +0300)
commitd71e03b3beea024babb689b3e3a79a177dd9b55e
tree6ca53d5a5d3961cc066da91617997dd46b8d22b8
parent8e8b8a8d3490f9b9e7644457154552ea73d56f29
baseparse: Don't add calculated bitrates until threshold

Waiting before posting calculated bitrates seems to be the
intent of the code, so avoid adding them to the tag list
pushed with the first frame.

When the threshold is reached, gst_base_parse_update_bitrates
sets tags_changed, so this posts the calculated ones right
that moment.

This prevents an insane average calculated from just the
first (key) frame from getting posted.

https://bugzilla.gnome.org/show_bug.cgi?id=768439
libs/gst/base/gstbaseparse.c