Commit 228bf7eb authored by Max Kellermann's avatar Max Kellermann

output/thread: cancel the AudioOutputSource() instead of closing it

This fixes the assertion failure due to calling AudioOutputSource::Close() twice.
parent 5eaf2b8f
......@@ -468,11 +468,11 @@ AudioOutputControl::Task() noexcept
if (always_on) {
/* in "always_on" mode, the output is
paused instead of being closed;
however we need to close the
however we need to flush the
AudioOutputSource because its data
have been invalidated by stopping
the actual playback */
source.Close();
source.Cancel();
InternalPause();
} else {
InternalClose(false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment