pipewire/0001-module-rt-fix-warning-when-xdg-desktop-portal-isnt-running.patch
Antonio Larrosa 77255f9033 Accepting request 1057763 from home:alarrosa:branches:multimedia:libs
- Add several patches from upstream to fix several issues
  (glfo#pipewire/pipewire#2925, glfo#pipewire/pipewire#2928,
   glfo#pipewire/pipewire#2929):
  * 0001-module-rt-fix-warning-when-xdg-desktop-portal-isnt-running.patch
  * 0001-midifile-error-won-invalid-track-size.patch
  * 0001-impl-node-move-2-state-variables-to-private.patch
  * 0001-context-rename-a-method.patch
  * 0002-impl-node-restore-running-state-after-reconfigure.patch
  * 0001-context-keep-per-node-quantum-and-rate-settings.patch
  * 0001-fix-use_buffers-checks.patch
  * 0001-pulse-server-clear-the-drained-state-correctly.patch

OBS-URL: https://build.opensuse.org/request/show/1057763
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/pipewire?expand=0&rev=102
2023-01-11 11:40:27 +00:00

46 lines
1.3 KiB
Diff

From 6d58c739371ab6d699871b9864db5f23d987d27e Mon Sep 17 00:00:00 2001
From: Jan Beich <jbeich@FreeBSD.org>
Date: Sun, 8 Jan 2023 02:06:35 +0000
Subject: [PATCH] module-rt: fix warning when xdg-desktop-portal isn't running
$ pipewire
...
[W][1234.001] mod.rt | [ module-rt.c: 278 pw_rtkit_check_xdg_portal()] Can't find xdg-portal: (null)
...
---
src/modules/module-rt.c | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
diff --git a/src/modules/module-rt.c b/src/modules/module-rt.c
index 5cfd766e4..6f3dbecd5 100644
--- a/src/modules/module-rt.c
+++ b/src/modules/module-rt.c
@@ -269,20 +269,12 @@ struct pw_rtkit_bus *pw_rtkit_bus_get_session(void)
bool pw_rtkit_check_xdg_portal(struct pw_rtkit_bus *system_bus)
{
- DBusError error;
- bool ret = true;
-
- dbus_error_init(&error);
-
- if (!dbus_bus_name_has_owner(system_bus->bus, XDG_PORTAL_SERVICE_NAME, &error)) {
- pw_log_warn("Can't find xdg-portal: %s", error.name);
- ret = false;
- goto finish;
+ if (!dbus_bus_name_has_owner(system_bus->bus, XDG_PORTAL_SERVICE_NAME, NULL)) {
+ pw_log_warn("Can't find %s. Is xdg-desktop-portal running?", XDG_PORTAL_SERVICE_NAME);
+ return false;
}
-finish:
- dbus_error_free(&error);
- return ret;
+ return true;
}
void pw_rtkit_bus_free(struct pw_rtkit_bus *system_bus)
--
GitLab