Skip to content

Fix m_produceThread teardown in PipeWireBaseEncodedStream::refresh

Vlad Zahorodnii requested to merge work/zzag/produce-thread-teardown into master

If the node id changes, the old produce thread is going to be destroyed. However, the QThread object can't be just nuked. We must wait until the finishes execution before destroying the QThread object.


It appears that nobody sets QObject parent and PipeWireBaseEncodedStream lacks code to destroy PipeWireProduce objects.


Fixes https://invent.kde.org/-/snippets/2924 crash

Merge request reports