summaryrefslogtreecommitdiff
path: root/src/decoder/plugins
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-07-11 21:53:03 +0200
committerMax Kellermann <max@duempel.org>2014-07-11 21:53:03 +0200
commit30f1ee7a1fba9b03404f0a4b1af83b708734d636 (patch)
treec319e186f822b9d02179946cacf113cd889501ca /src/decoder/plugins
parent46ff830daad6112285f7be19e27166ee3370dddd (diff)
decoder/sndfile: log libsndfile version on startup
Diffstat (limited to 'src/decoder/plugins')
-rw-r--r--src/decoder/plugins/SndfileDecoderPlugin.cxx9
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 &param)
+{
+ 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,