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:
parent
40851b7cac
commit
1937d29228
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue