From 7133f560ec24c90671a40c9f9bc9cea6eb31cc17 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 14 Aug 2009 11:52:12 +0200 Subject: output: fixed shout stuck pause bug Explicitly make the output thread leave the ao_pause() loop. This patch is a workaround, and the "pause" flag is not managed in a thread-safe way, but that's good enough for now. --- src/output_internal.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/output_internal.h') diff --git a/src/output_internal.h b/src/output_internal.h index 362d2494..72596c1c 100644 --- a/src/output_internal.h +++ b/src/output_internal.h @@ -80,6 +80,12 @@ struct audio_output { */ bool open; + /** + * Is the device paused? i.e. the output thread is in the + * ao_pause() loop. + */ + bool pause; + /** * If not NULL, the device has failed, and this timer is used * to estimate how long it should stay disabled (unless -- cgit v1.2.3