output/thread: cancel the AudioOutputSource() instead of closing it
This fixes the assertion failure due to calling AudioOutputSource::Close() twice.
This commit is contained in:
parent
5eaf2b8fc3
commit
228bf7eb09
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user