aboutsummaryrefslogtreecommitdiffstats
path: root/src/DecoderInternal.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/DecoderInternal.cxx')
-rw-r--r--src/DecoderInternal.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DecoderInternal.cxx b/src/DecoderInternal.cxx
index 4d1e9a3d3..0c9a10436 100644
--- a/src/DecoderInternal.cxx
+++ b/src/DecoderInternal.cxx
@@ -70,7 +70,7 @@ decoder_get_chunk(struct decoder *decoder)
return decoder->chunk;
do {
- decoder->chunk = music_buffer_allocate(dc->buffer);
+ decoder->chunk = dc->buffer->Allocate();
if (decoder->chunk != NULL) {
decoder->chunk->replay_gain_serial =
decoder->replay_gain_serial;
@@ -98,7 +98,7 @@ decoder_flush_chunk(struct decoder *decoder)
assert(decoder->chunk != NULL);
if (decoder->chunk->IsEmpty())
- music_buffer_return(dc->buffer, decoder->chunk);
+ dc->buffer->Return(decoder->chunk);
else
dc->pipe->Push(decoder->chunk);