From 1937d29228a9727fb76faeffd66a74c6167238e0 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 29 Jun 2009 22:20:46 +0200 Subject: output_thread: don't play next chunk after command==PAUSE When the PAUSE loop ends, re-check the next command before calling ao_play() again. --- src/output_thread.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/output_thread.c b/src/output_thread.c index acedd863e..d414ba8d5 100644 --- a/src/output_thread.c +++ b/src/output_thread.c @@ -246,7 +246,11 @@ static gpointer audio_output_task(gpointer arg) case AO_COMMAND_PAUSE: ao_pause(ao); - break; + /* don't "break" here: this might cause + ao_play() to be called when command==CLOSE + ends the paused state - "continue" checks + the new command first */ + continue; case AO_COMMAND_CANCEL: ao->chunk = NULL; -- cgit v1.2.3