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 17:07:06 +0000 (18:07 +0100)
commitf7e228edb0015c9d6cc74fda2775d0e791fbb690
tree490f20a6911e2be8ae307a7755226780ab202ed7
parent00b04446186e7994affdba791ced46d1fd5920b7
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