baseparse: Don't emit bitrate tags too early
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Fri, 26 Mar 2010 18:56:49 +0000 (18:56 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 8 Apr 2011 14:44:49 +0000 (15:44 +0100)
commiteb73b3e933db51ea9bc724a53bf57312612453c5
treea6293bcc9e99e31b5656a07c725c628965e36bb5
parenta6b20b62bd756bdba092659c5d58b24cb24fd9fc
baseparse: Don't emit bitrate tags too early

We wait to parse a minimum number of frames (10, arbitrarily) before
emiting bitrate tags so that our early estimates are not wildly
inaccurate for streams that start with a silence. If the stream ends
before that, we just emit the tags anyway.

While it _would_ be nicer to be specify the threshold to start pushing
the tags in terms of duration, this would introduce more complexity than
this merits.

https://bugzilla.gnome.org/show_bug.cgi?id=614991
gst/audioparsers/gstbaseparse.c