diff options
author | Max Kellermann <max@duempel.org> | 2009-02-10 22:08:05 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-02-10 22:08:05 +0100 |
commit | a96993f65500dfbbf5104685a375c712208f9fc8 (patch) | |
tree | 3888c4e4cc6dd40d78a2b1ad97bafcc6c078630a | |
parent | bd8ecba4495d0de223e07a0a22600c8da03a2211 (diff) | |
download | mpd-a96993f65500dfbbf5104685a375c712208f9fc8.tar.gz mpd-a96993f65500dfbbf5104685a375c712208f9fc8.tar.xz mpd-a96993f65500dfbbf5104685a375c712208f9fc8.zip |
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.
-rw-r--r-- | src/output_thread.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/output_thread.c b/src/output_thread.c index 257261415..76f090c31 100644 --- a/src/output_thread.c +++ b/src/output_thread.c @@ -86,6 +86,7 @@ static void ao_pause(struct audio_output *ao) ao->plugin->close(ao->data); pcm_convert_deinit(&ao->convert_state); ao->open = false; + break; } } while (ao->command == AO_COMMAND_NONE); } else { |