diff options
author | Max Kellermann <max@duempel.org> | 2014-07-11 21:53:03 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-07-11 21:53:03 +0200 |
commit | 30f1ee7a1fba9b03404f0a4b1af83b708734d636 (patch) | |
tree | c319e186f822b9d02179946cacf113cd889501ca /src/decoder | |
parent | 46ff830daad6112285f7be19e27166ee3370dddd (diff) | |
download | mpd-30f1ee7a1fba9b03404f0a4b1af83b708734d636.tar.gz mpd-30f1ee7a1fba9b03404f0a4b1af83b708734d636.tar.xz mpd-30f1ee7a1fba9b03404f0a4b1af83b708734d636.zip |
decoder/sndfile: log libsndfile version on startup
Diffstat (limited to 'src/decoder')
-rw-r--r-- | src/decoder/plugins/SndfileDecoderPlugin.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/decoder/plugins/SndfileDecoderPlugin.cxx b/src/decoder/plugins/SndfileDecoderPlugin.cxx index 1901ea7e4..525cae267 100644 --- a/src/decoder/plugins/SndfileDecoderPlugin.cxx +++ b/src/decoder/plugins/SndfileDecoderPlugin.cxx @@ -32,6 +32,13 @@ static constexpr Domain sndfile_domain("sndfile"); +static bool +sndfile_init(gcc_unused const config_param ¶m) +{ + LogDebug(sndfile_domain, sf_version_string()); + return true; +} + struct SndfileInputStream { Decoder *const decoder; InputStream &is; @@ -282,7 +289,7 @@ static const char *const sndfile_mime_types[] = { const struct DecoderPlugin sndfile_decoder_plugin = { "sndfile", - nullptr, + sndfile_init, nullptr, sndfile_stream_decode, nullptr, |