diff options
author | Max Kellermann <max@musicpd.org> | 2018-07-07 13:52:58 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-07-07 13:52:58 +0200 |
commit | d4ce6049c9c56294459ad66536518e95d7642be4 (patch) | |
tree | 682c747c8db2c90126f6c99e0e64d72f3f744b01 /src/decoder/plugins/WavpackDecoderPlugin.cxx | |
parent | c236a85c13b3a16669f150ecd52d39655eb99f92 (diff) |
decoder/wavpack: call TagHandler::OnAudioFormat()
Diffstat (limited to 'src/decoder/plugins/WavpackDecoderPlugin.cxx')
-rw-r--r-- | src/decoder/plugins/WavpackDecoderPlugin.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
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)); |