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.
This commit is contained in:
Max Kellermann 2009-06-29 22:20:46 +02:00
parent 40851b7cac
commit 1937d29228
1 changed files with 5 additions and 1 deletions

View File

@ -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;