Commit 493677ff authored by Max Kellermann's avatar Max Kellermann

output/PipeWire: skip Cancel() if already drained

parent 6b430ba2
......@@ -892,6 +892,9 @@ PipeWireOutput::Cancel() noexcept
const PipeWire::ThreadLoopLock lock(thread_loop);
interrupted = false;
if (drained)
return;
ring_buffer->reset();
}
......
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