Commit a96993f6 authored by Max Kellermann's avatar Max Kellermann

output_thread: leave the pause loop on failure

When the pause() method fails, leave the pause loop, because calling pause() on a closed device is not allowed.
parent bd8ecba4
...@@ -86,6 +86,7 @@ static void ao_pause(struct audio_output *ao) ...@@ -86,6 +86,7 @@ static void ao_pause(struct audio_output *ao)
ao->plugin->close(ao->data); ao->plugin->close(ao->data);
pcm_convert_deinit(&ao->convert_state); pcm_convert_deinit(&ao->convert_state);
ao->open = false; ao->open = false;
break;
} }
} while (ao->command == AO_COMMAND_NONE); } while (ao->command == AO_COMMAND_NONE);
} else { } else {
......
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