Skip to content

produce: Properly cleanup on deactivate in all cases

Arjen Hiemstra requested to merge work/cherry-pick-2e1c3bbd into Plasma/6.1

We may end up calling deactivate with a PipeWire stream that is not yet streaming. In that case calling setActive(false) on the stream will do nothing and not cause a state change, so our cleanup code is never ran, which may cause hangs because an application is waiting for the encoder to finish. So ensure we do cleanup properly when the stream is not in a streaming state.

BUG: 488687

(cherry picked from commit 2e1c3bbd)

Co-authored-by: Arjen Hiemstra ahiemstra@heimr.nl

Merge request reports