summaryrefslogtreecommitdiff
path: root/src/output_thread.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-02-10 22:08:05 +0100
committerMax Kellermann <max@duempel.org>2009-02-10 22:08:05 +0100
commita96993f65500dfbbf5104685a375c712208f9fc8 (patch)
tree3888c4e4cc6dd40d78a2b1ad97bafcc6c078630a /src/output_thread.c
parentbd8ecba4495d0de223e07a0a22600c8da03a2211 (diff)
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.
Diffstat (limited to 'src/output_thread.c')
-rw-r--r--src/output_thread.c1
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 {