summaryrefslogtreecommitdiff
path: root/src/decoder/plugins/WildmidiDecoderPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-07-07 13:43:29 +0200
committerMax Kellermann <max@musicpd.org>2018-07-07 13:43:29 +0200
commit9cf43eef678dae97fef99659a764dbe07987cf7a (patch)
tree3afd373b98df5ce28185478d5264f8191b1e72e8 /src/decoder/plugins/WildmidiDecoderPlugin.cxx
parented6d0aa5482e5864150ca9dcfcd7e5b2cb623f41 (diff)
decoder/wildmidi: call TagHandler::OnAudioFormat()
Diffstat (limited to 'src/decoder/plugins/WildmidiDecoderPlugin.cxx')
-rw-r--r--src/decoder/plugins/WildmidiDecoderPlugin.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/decoder/plugins/WildmidiDecoderPlugin.cxx b/src/decoder/plugins/WildmidiDecoderPlugin.cxx
index 6ff76302a..315c326b3 100644
--- a/src/decoder/plugins/WildmidiDecoderPlugin.cxx
+++ b/src/decoder/plugins/WildmidiDecoderPlugin.cxx
@@ -134,6 +134,8 @@ wildmidi_scan_file(Path path_fs, TagHandler &handler) noexcept
return false;
}
+ handler.OnAudioFormat(wildmidi_audio_format);
+
const auto duration =
SongTime::FromScale<uint64_t>(info->approx_total_samples,
wildmidi_audio_format.sample_rate);