aboutsummaryrefslogtreecommitdiffstats
path: root/src/output_internal.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-08-14 11:52:12 +0200
committerMax Kellermann <max@duempel.org>2009-08-14 11:52:12 +0200
commit7133f560ec24c90671a40c9f9bc9cea6eb31cc17 (patch)
tree09d34f30a6173ff58afe37ece71bcaaca5d4423f /src/output_internal.h
parent7dddd9beda2bb0505758bb6a32cae6feb3215733 (diff)
downloadmpd-7133f560ec24c90671a40c9f9bc9cea6eb31cc17.tar.gz
mpd-7133f560ec24c90671a40c9f9bc9cea6eb31cc17.tar.xz
mpd-7133f560ec24c90671a40c9f9bc9cea6eb31cc17.zip
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.
Diffstat (limited to '')
-rw-r--r--src/output_internal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/output_internal.h b/src/output_internal.h
index 362d24947..72596c1c3 100644
--- a/src/output_internal.h
+++ b/src/output_internal.h
@@ -81,6 +81,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
* explicitly reopened with "play").