output/PipeWire: skip Cancel() if already drained
This commit is contained in:
@@ -892,6 +892,9 @@ PipeWireOutput::Cancel() noexcept
|
|||||||
const PipeWire::ThreadLoopLock lock(thread_loop);
|
const PipeWire::ThreadLoopLock lock(thread_loop);
|
||||||
interrupted = false;
|
interrupted = false;
|
||||||
|
|
||||||
|
if (drained)
|
||||||
|
return;
|
||||||
|
|
||||||
ring_buffer->reset();
|
ring_buffer->reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user