diff options
author | Max Kellermann <max@duempel.org> | 2013-11-06 23:47:30 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-11-06 23:51:17 +0100 |
commit | f8f95e2dbd73d0d43211136e50a8d640f145872c (patch) | |
tree | 9d4ea69a9c668f6286e0dc6de38ec5dfb650a55e /src/OutputInit.cxx | |
parent | 77c63511d8809f7785328138e7e3a50303302730 (diff) | |
download | mpd-f8f95e2dbd73d0d43211136e50a8d640f145872c.tar.gz mpd-f8f95e2dbd73d0d43211136e50a8d640f145872c.tar.xz mpd-f8f95e2dbd73d0d43211136e50a8d640f145872c.zip |
OutputControl: reduce the number of OutputThread wakeups
Wake up the OutputThread only if it hasn't already been woken up and
if it isn't already in the playback loop.
Diffstat (limited to '')
-rw-r--r-- | src/OutputInit.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/OutputInit.cxx b/src/OutputInit.cxx index 49b5d68b9..28eba1ab2 100644 --- a/src/OutputInit.cxx +++ b/src/OutputInit.cxx @@ -171,6 +171,8 @@ ao_base_init(struct audio_output *ao, ao->open = false; ao->pause = false; ao->allow_play = true; + ao->in_playback_loop = false; + ao->woken_for_play = false; ao->fail_timer = nullptr; /* set up the filter chain */ |