From de0ee26432f192d27f98836fdbe90f358ca8891c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 7 Jul 2018 13:29:39 +0200 Subject: [PATCH] decoder/sndfile: call TagHandler::OnAudioFormat() --- src/decoder/plugins/SndfileDecoderPlugin.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/decoder/plugins/SndfileDecoderPlugin.cxx b/src/decoder/plugins/SndfileDecoderPlugin.cxx index 7c20f1566..58714e4c3 100644 --- a/src/decoder/plugins/SndfileDecoderPlugin.cxx +++ b/src/decoder/plugins/SndfileDecoderPlugin.cxx @@ -286,6 +286,11 @@ sndfile_scan_stream(InputStream &is, TagHandler &handler) noexcept return false; } + try { + handler.OnAudioFormat(CheckAudioFormat(info)); + } catch (...) { + } + handler.OnDuration(sndfile_duration(info)); for (auto i : sndfile_tags)