From d093fb2441ee99722670f0401215031fc324bb31 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 2 May 2010 15:16:59 +0200 Subject: chunk: added attribute "other" Preparation for cross-fading support in the output thread. --- src/buffer.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/buffer.c') diff --git a/src/buffer.c b/src/buffer.c index 27a0bf05c..bee871700 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -118,6 +118,9 @@ music_buffer_return(struct music_buffer *buffer, struct music_chunk *chunk) assert(buffer != NULL); assert(chunk != NULL); + if (chunk->other != NULL) + music_buffer_return(buffer, chunk->other); + g_mutex_lock(buffer->mutex); music_chunk_free(chunk); -- cgit v1.2.3