diff options
author | Max Kellermann <max@musicpd.org> | 2016-11-18 07:13:35 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2016-11-18 09:03:39 +0100 |
commit | fd77acc217340aeee3dc80173b6000815ebb709f (patch) | |
tree | 05c4ef7d1c604efd7315abc32b9e962ed1361402 /src/decoder/DecoderBuffer.cxx | |
parent | 595d1942cb795adcc0c037389aeb8238c788a3c0 (diff) |
decoder/Client: new interface which wraps struct Decoder
Prepare for a Decoder API redesign based on an abstract class with
virtual methods.
Diffstat (limited to 'src/decoder/DecoderBuffer.cxx')
-rw-r--r-- | src/decoder/DecoderBuffer.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder/DecoderBuffer.cxx b/src/decoder/DecoderBuffer.cxx index 575e0c92a..4d57e4040 100644 --- a/src/decoder/DecoderBuffer.cxx +++ b/src/decoder/DecoderBuffer.cxx @@ -29,7 +29,7 @@ DecoderBuffer::Fill() /* buffer is full */ return false; - size_t nbytes = decoder_read(decoder, is, + size_t nbytes = decoder_read(client, is, w.data, w.size); if (nbytes == 0) /* end of file, I/O error or decoder command @@ -65,5 +65,5 @@ DecoderBuffer::Skip(size_t nbytes) buffer.Clear(); nbytes -= r.size; - return decoder_skip(decoder, is, nbytes); + return decoder_skip(client, is, nbytes); } |