GNOME Bugzilla – Bug 344472
[wavpackdec] should post audio codec tag and extract bitrate
Last modified: 2006-08-24 09:29:15 UTC
When playing a wavpack file, totem currently only shows the duration in the properties dialog. We should at least show the audio codec name and also the average bitrate (if applicable).
The only way to get the average bitrate is by querying the upstream elements for the duration in TIME and BYTES format... would this be fine or would it be preferable to not show any average bitrate at all?
Created attachment 71452 [details] [review] wavpackdec-tags.diff this patch posts GST_TAG_AUDIO_CODEC and if possible GST_TAG_BITRATE. for this the duration and position queries have to be forwared upstream in wavpackparse if the format can't be handled there.
Committed, thanks: 2006-08-24 Tim-Philipp Müller <tim at centricular dot net> Patch by: Sebastian Dröge <slomo at circular-chaos.org> * ext/wavpack/gstwavpackdec.c: (gst_wavpack_dec_post_tags), (gst_wavpack_dec_chain): Post audio codec and average bitrate tags on bus (#344472). * ext/wavpack/gstwavpackparse.c: (gst_wavpack_parse_base_init), (gst_wavpack_parse_src_query): Forward queries in other formats (BYTE format in particular) upstream; add Sebastian to authors. I changed the AUDIO_CODEC string to just "Wavpack" in both cases (mostly to avoid having to mark the string for translation for now, but also because it's more or less apparent from the bitrate anyway).