From d4ce6049c9c56294459ad66536518e95d7642be4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 7 Jul 2018 13:52:58 +0200 Subject: [PATCH] decoder/wavpack: call TagHandler::OnAudioFormat() --- src/decoder/plugins/WavpackDecoderPlugin.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/decoder/plugins/WavpackDecoderPlugin.cxx b/src/decoder/plugins/WavpackDecoderPlugin.cxx index 0c098f037..fc3a9df49 100644 --- a/src/decoder/plugins/WavpackDecoderPlugin.cxx +++ b/src/decoder/plugins/WavpackDecoderPlugin.cxx @@ -598,6 +598,11 @@ wavpack_scan_file(Path path_fs, TagHandler &handler) noexcept WavpackCloseFile(wpc); }; + try { + handler.OnAudioFormat(CheckAudioFormat(wpc)); + } catch (...) { + } + const auto duration = GetDuration(wpc); if (!duration.IsNegative()) handler.OnDuration(SongTime(duration)); @@ -622,6 +627,11 @@ wavpack_scan_stream(InputStream &is, TagHandler &handler) noexcept WavpackCloseFile(wpc); }; + try { + handler.OnAudioFormat(CheckAudioFormat(wpc)); + } catch (...) { + } + const auto duration = GetDuration(wpc); if (!duration.IsNegative()) handler.OnDuration(SongTime(duration));