baseparse: avoid tag list spam if upstream provides bitrate tags already
authorTim-Philipp Müller <tim@centricular.com>
Tue, 18 Aug 2015 14:44:02 +0000 (15:44 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 18 Aug 2015 14:51:53 +0000 (15:51 +0100)
commita887d81bfad01d90d9f81b7bf10b2d15c2a59064
treef780de7af7eac883bb85f08a44ae718165fc2ab6
parentf3e122ffec5d832775394bb602f283b371cc37ab
baseparse: avoid tag list spam if upstream provides bitrate tags already

Explicitly keep track again whether upstream tags or parser tags
already contain bitrate information, and only force a tag update
for a bitrate if we are actually going to add the bitrate to the
taglist later. This fixes constant re-sending of the same taglist,
because upstream provided a bitrate already and we didn't add it,
so we didn't save the 'posted' bitrate, which would then in turn
again trigger the 'bitrate has changed too much, update tags'
code path. Fixes tag spam with m4a files for example.

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