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:
@@ -246,7 +246,11 @@ static gpointer audio_output_task(gpointer arg)
|
|||||||
|
|
||||||
case AO_COMMAND_PAUSE:
|
case AO_COMMAND_PAUSE:
|
||||||
ao_pause(ao);
|
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:
|
case AO_COMMAND_CANCEL:
|
||||||
ao->chunk = NULL;
|
ao->chunk = NULL;
|
||||||
|
Reference in New Issue
Block a user