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