From a96993f65500dfbbf5104685a375c712208f9fc8 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 10 Feb 2009 22:08:05 +0100 Subject: 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. --- src/output_thread.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/output_thread.c') 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 { -- cgit v1.2.3