decoder/opus: pass DecoderReader to constructor

This commit is contained in:
Max Kellermann 2016-05-13 12:16:22 +02:00
parent 806bf0be8d
commit f057f6768f
1 changed files with 4 additions and 4 deletions

View File

@ -94,9 +94,9 @@ class MPDOpusDecoder {
size_t frame_size;
public:
MPDOpusDecoder(Decoder &_decoder,
InputStream &_input_stream)
:decoder(_decoder), input_stream(_input_stream),
MPDOpusDecoder(DecoderReader &reader)
:decoder(reader.GetDecoder()),
input_stream(reader.GetInputStream()),
os(0) {}
~MPDOpusDecoder();
@ -409,7 +409,7 @@ mpd_opus_stream_decode(Decoder &decoder,
DecoderReader reader(decoder, input_stream);
OggSyncState oy(reader);
MPDOpusDecoder d(decoder, input_stream);
MPDOpusDecoder d(reader);
while (true) {
auto cmd = d.HandlePackets();