Commit 1937d292 authored by Max Kellermann's avatar Max Kellermann

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.
parent 40851b7c
...@@ -246,7 +246,11 @@ static gpointer audio_output_task(gpointer arg) ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment