diff options
author | Max Kellermann <max@musicpd.org> | 2018-11-12 12:24:25 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-11-12 12:24:25 +0100 |
commit | 228bf7eb093f2d628fad87ae2bc18d278a91dc7d (patch) | |
tree | 7c3259c067f81b5f2cceded94de7ef3c48dc192d /src/output | |
parent | 5eaf2b8fc3736f73df433c81fbca0941d184f7c5 (diff) |
output/thread: cancel the AudioOutputSource() instead of closing it
This fixes the assertion failure due to calling
AudioOutputSource::Close() twice.
Diffstat (limited to 'src/output')
-rw-r--r-- | src/output/Thread.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/output/Thread.cxx b/src/output/Thread.cxx index b0556b34d..0d6f5e308 100644 --- a/src/output/Thread.cxx +++ b/src/output/Thread.cxx @@ -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); |