decoder/audiofile: call TagHandler::OnAudioFormat()

This commit is contained in:
Max Kellermann 2018-07-07 13:18:06 +02:00
parent 18508d1919
commit 1dcaf8f76a

View File

@ -253,6 +253,13 @@ audiofile_scan_stream(InputStream &is, TagHandler &handler) noexcept
handler.OnDuration(audiofile_get_duration(fh));
try {
handler.OnAudioFormat(CheckAudioFormat(afGetRate(fh, AF_DEFAULT_TRACK),
audiofile_setup_sample_format(fh),
afGetVirtualChannels(fh, AF_DEFAULT_TRACK)));
} catch (...) {
}
return true;
}