decoder/opus: call TagHandler::OnAudioFormat()

This commit is contained in:
Max Kellermann 2018-07-07 13:34:32 +02:00
parent de0ee26432
commit 3d27fffc50
1 changed files with 3 additions and 0 deletions

View File

@ -355,6 +355,9 @@ mpd_opus_scan_stream(InputStream &is, TagHandler &handler) noexcept
!ReadAndVisitOpusTags(oy, os, handler))
return false;
handler.OnAudioFormat(AudioFormat(opus_sample_rate,
SampleFormat::S16, channels));
VisitOpusDuration(is, oy, os, handler);
return true;
}