decoder/mad: call TagHandler::OnAudioFormat()

This commit is contained in:
Max Kellermann 2018-07-07 13:10:39 +02:00
parent 0d0569b9af
commit 9f77d568e2
1 changed files with 8 additions and 0 deletions

View File

@ -1060,6 +1060,14 @@ mad_decoder_scan_stream(InputStream &is, TagHandler &handler) noexcept
if (!data.total_time.IsNegative())
handler.OnDuration(SongTime(data.total_time));
try {
handler.OnAudioFormat(CheckAudioFormat(data.frame.header.samplerate,
SampleFormat::S24_P32,
MAD_NCHANNELS(&data.frame.header)));
} catch (...) {
}
return true;
}