From 3216f4b25753d566793173c7a4f53a126ac37744 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 26 Sep 2013 22:09:42 +0200 Subject: MusicBuffer: expose the C++ API --- src/DecoderAPI.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/DecoderAPI.cxx') diff --git a/src/DecoderAPI.cxx b/src/DecoderAPI.cxx index 68ccd524c..71c3d0497 100644 --- a/src/DecoderAPI.cxx +++ b/src/DecoderAPI.cxx @@ -178,11 +178,11 @@ decoder_command_finished(struct decoder *decoder) /* delete frames from the old song position */ if (decoder->chunk != NULL) { - music_buffer_return(dc->buffer, decoder->chunk); + dc->buffer->Return(decoder->chunk); decoder->chunk = NULL; } - dc->pipe->Clear(dc->buffer); + dc->pipe->Clear(*dc->buffer); decoder->timestamp = dc->seek_where; } -- cgit v1.2.3