aboutsummaryrefslogtreecommitdiff
path: root/src/decoder_internal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/decoder_internal.c')
-rw-r--r--src/decoder_internal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder_internal.c b/src/decoder_internal.c
index 5078591b..cd8f03c1 100644
--- a/src/decoder_internal.c
+++ b/src/decoder_internal.c
@@ -56,7 +56,7 @@ struct music_chunk *decoder_get_chunk(struct decoder *decoder)
assert(decoder != NULL);
do {
- if (music_pipe_size(dc->pipe) >= dc->buffer_samples) {
+ if (music_pipe_size(dc->pipe) <= dc->buffer_samples) {
chunk = music_chunk_alloc();
if (!chunk)
return NULL;