Skip to content

improve gstpipewiresrc shutdown

Michael Olbrich requested to merge mol/pipewire:gstsrc into master

When a gstpipewiresrc stops then the busy refcount may not be decremented for all buffers. With multiple clients this means that these buffers remain busy as long as the stream is active.

This fixes the refcounting and ensures that all buffers are properly released.

The locking is a bit ugly, but I've not found a better way to do this. Anything else I've come up withhad either deadlock or use-after-free issues.

Merge request reports