PipeWire: ScreenCapture - fix stream synchronization in destroyStream
The cleanest way to ensure that the stream is finished after we
disconnect is to wait for the `state_changed` callback to go to
PW_STREAM_STATE_UNCONNECTED.
Thos most notably can prevent starvation of the thread not being able to
acquire the event loop lock in time.
Pick-to: 6.12
Change-Id: I371a23f41a7701d308c2fa164da1cb1bc46ad0e9
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
| commit | 0bef12ae2dc999bba725444e59034b651d340348 |
| parent | b29435834dbb8a0f3b53b672e1d3eaff30a562ae |
| author | Tim Blechmann <tim.blechmann@qt.io> |
| committer | Tim Blechmann <tim.blechmann@qt.io> |
| commit time | Tue, 1 Sep 2026 06:30:53 +0000 |