diff options
-rw-r--r-- | src/output_thread.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/output_thread.c b/src/output_thread.c index 502599cb9..39b644e38 100644 --- a/src/output_thread.c +++ b/src/output_thread.c @@ -332,12 +332,11 @@ ao_play(struct audio_output *ao) if (chunk != NULL) /* continue the previous play() call */ chunk = chunk->next; - else { + else chunk = music_pipe_peek(ao->pipe); - if (chunk == NULL) - /* no chunk available */ - return false; - } + if (chunk == NULL) + /* no chunk available */ + return false; ao->chunk_finished = false; |