service/pipewire: call pw_loop_enter/leave on the SPA event loop

This commit is contained in:
Jeff Zhou authored and outfoxxed committed 2026-10-21 17:11:09 -07:00
1 parent 2b4501a282
commit 1039e2b9d5
2 files changed
+4

No files matched your search

+1
View File
@@ -6,3 +6,4 @@
- Fixed `WlSessionLock.locked` changes not being emitted on unlock.
- Fixed a crash when unplugging a screen being captured by ScreencopyView or trying to capture the fallback screen.
- Fixed most broken qml types in qmlls/qmllint for Qt 6.12.
- Fixed missing thread entry for Pipewire event loop resulting in Pipewire connection failing.
+3
View File
@@ -55,6 +55,8 @@ bool PwCore::start(bool retry) {
return false;
}
pw_loop_enter(this->loop);
this->context = pw_context_new(this->loop, nullptr, 0);
if (this->context == nullptr) {
if (retry) {
@@ -103,6 +105,7 @@ void PwCore::shutdown() {
}
if (this->loop != nullptr) {
pw_loop_leave(this->loop);
pw_loop_destroy(this->loop);
this->loop = nullptr;
}