diff options
author | Max Kellermann <max@duempel.org> | 2014-05-22 13:12:26 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-05-22 13:52:00 +0200 |
commit | af49cace8d6e260ed0753e88cf597b30199a6675 (patch) | |
tree | 1c5a0a006cae8375c914a42966de9b9db3e97c09 /src/decoder/plugins/VorbisDecoderPlugin.cxx | |
parent | 13b78d0d89f577f7b1d2985319f72f8da326b0cb (diff) | |
download | mpd-af49cace8d6e260ed0753e88cf597b30199a6675.tar.gz mpd-af49cace8d6e260ed0753e88cf597b30199a6675.tar.xz mpd-af49cace8d6e260ed0753e88cf597b30199a6675.zip |
decoder/vorbis: log libvorbis version on startup
Diffstat (limited to 'src/decoder/plugins/VorbisDecoderPlugin.cxx')
-rw-r--r-- | src/decoder/plugins/VorbisDecoderPlugin.cxx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/decoder/plugins/VorbisDecoderPlugin.cxx b/src/decoder/plugins/VorbisDecoderPlugin.cxx index d1cf6fae4..43758c0f6 100644 --- a/src/decoder/plugins/VorbisDecoderPlugin.cxx +++ b/src/decoder/plugins/VorbisDecoderPlugin.cxx @@ -171,6 +171,16 @@ vorbis_interleave(float *dest, const float *const*src, #endif /* public */ + +static bool +vorbis_init(gcc_unused const config_param ¶m) +{ +#ifndef HAVE_TREMOR + LogDebug(vorbis_domain, vorbis_version_string()); +#endif + return true; +} + static void vorbis_stream_decode(Decoder &decoder, InputStream &input_stream) @@ -337,7 +347,7 @@ static const char *const vorbis_mime_types[] = { const struct DecoderPlugin vorbis_decoder_plugin = { "vorbis", - nullptr, + vorbis_init, nullptr, vorbis_stream_decode, nullptr, |