mirror of
https://github.com/quickshell-mirror/quickshell.git
synced 2026-10-27 02:54:36 +00:00
service/pipewire: call pw_loop_enter/leave on the SPA event loop
This commit is contained in:
1 parent
2b4501a282
commit
1039e2b9d5
2 files changed
+4
No files matched your search
@@ -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.
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user