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));