decoder/sndfile: log libsndfile version on startup

This commit is contained in:
Max Kellermann 2014-07-11 21:53:03 +02:00
parent 46ff830daa
commit 30f1ee7a1f

View File

@ -32,6 +32,13 @@
static constexpr Domain sndfile_domain("sndfile"); 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 { struct SndfileInputStream {
Decoder *const decoder; Decoder *const decoder;
InputStream &is; InputStream &is;
@ -282,7 +289,7 @@ static const char *const sndfile_mime_types[] = {
const struct DecoderPlugin sndfile_decoder_plugin = { const struct DecoderPlugin sndfile_decoder_plugin = {
"sndfile", "sndfile",
nullptr, sndfile_init,
nullptr, nullptr,
sndfile_stream_decode, sndfile_stream_decode,
nullptr, nullptr,