From 30f1ee7a1fba9b03404f0a4b1af83b708734d636 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 11 Jul 2014 21:53:03 +0200 Subject: decoder/sndfile: log libsndfile version on startup --- src/decoder/plugins/SndfileDecoderPlugin.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/decoder') 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, -- cgit v1.2.3