From 142b660e7bdaadae7d2f858c4d97fa580816b112 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 14 Nov 2023 15:06:42 +0100 Subject: [PATCH] modules: make better media.name for RAOP sink Use the destination in the media.name so that it becomes unique and the volumes can be restored per destination. Fixes #3801 --- src/modules/module-raop-sink.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/module-raop-sink.c b/src/modules/module-raop-sink.c index c91f80a9f..2428383cb 100644 --- a/src/modules/module-raop-sink.c +++ b/src/modules/module-raop-sink.c @@ -1854,6 +1854,8 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args) if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL) pw_properties_setf(props, PW_KEY_NODE_NAME, "raop_sink.%s.%s.%s", hostname, ip, port); + if (pw_properties_get(props, PW_KEY_MEDIA_NAME) == NULL) + pw_properties_setf(props, PW_KEY_MEDIA_NAME, "RAOP to %s", name); if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL) pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "%s", name); if (pw_properties_get(props, PW_KEY_NODE_LATENCY) == NULL) @@ -1891,6 +1893,7 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args) copy_props(impl, props, PW_KEY_NODE_VIRTUAL); copy_props(impl, props, PW_KEY_MEDIA_CLASS); copy_props(impl, props, PW_KEY_MEDIA_FORMAT); + copy_props(impl, props, PW_KEY_MEDIA_NAME); copy_props(impl, props, "net.mtu"); copy_props(impl, props, "rtp.sender-ts-offset"); copy_props(impl, props, "sess.media");