diff --git a/0001-pulse-server-set-all-change_mask-flags-when-removing.patch b/0001-pulse-server-set-all-change_mask-flags-when-removing.patch new file mode 100644 index 0000000..ae07c82 --- /dev/null +++ b/0001-pulse-server-set-all-change_mask-flags-when-removing.patch @@ -0,0 +1,32 @@ +From dae06a88b98fbc8428b9088b7ff164c8fe3f74b8 Mon Sep 17 00:00:00 2001 +From: Wim Taymans +Date: Tue, 8 Aug 2023 13:01:30 +0200 +Subject: [PATCH] pulse-server: set all change_mask flags when removing + +So that the logic to emit events will select sink and source objects. + +Fixes #3414 +--- + src/modules/module-protocol-pulse/manager.c | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/src/modules/module-protocol-pulse/manager.c b/src/modules/module-protocol-pulse/manager.c +index 91594ce62..76517f112 100644 +--- a/src/modules/module-protocol-pulse/manager.c ++++ b/src/modules/module-protocol-pulse/manager.c +@@ -641,9 +641,10 @@ static void registry_event_global_remove(void *data, uint32_t id) + + o->this.removing = true; + +- if (!o->this.creating) ++ if (!o->this.creating) { ++ o->this.change_mask = ~0; + manager_emit_removed(m, &o->this); +- ++ } + object_destroy(o); + } + +-- +2.41.0 + diff --git a/pipewire.spec b/pipewire.spec index cefe2ea..cc6665f 100644 --- a/pipewire.spec +++ b/pipewire.spec @@ -9,7 +9,7 @@ %global ms_version 0.4.2 # For rpmdev-bumpspec and releng automation -%global baserelease 2 +%global baserelease 3 #global snapdate 20210107 #global gitcommit b17db2cebc1a5ab2c01851d29c05f79cd2f262bb @@ -76,6 +76,7 @@ Source0: https://gitlab.freedesktop.org/pipewire/pipewire/-/archive/%{ver Source1: pipewire.sysusers ## upstream patches +Patch0001: 0001-pulse-server-set-all-change_mask-flags-when-removing.patch ## upstreamable patches @@ -721,6 +722,9 @@ systemctl --no-reload preset --global pipewire.socket >/dev/null 2>&1 || : %endif %changelog +* Tue Aug 08 2023 Wim Taymans - 0.3.77-3 +- Add patch to avoid duplicate sinks and sources. + * Mon Aug 07 2023 Sandro Bonazzola - 0.3.77-2 - Explicitly require pipewire-jack-audio-connection-kit-libs for pipewire-plugin-jack