From 0dacde32f258cf228b9944ef7c6c452f4f06dec2 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 10 Aug 2021 11:30:23 +0200 Subject: [PATCH] output/pipewire: append output name to PW node name --- src/output/plugins/PipeWireOutputPlugin.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/output/plugins/PipeWireOutputPlugin.cxx b/src/output/plugins/PipeWireOutputPlugin.cxx index 73b4cf0c8..5e4938589 100644 --- a/src/output/plugins/PipeWireOutputPlugin.cxx +++ b/src/output/plugins/PipeWireOutputPlugin.cxx @@ -366,9 +366,10 @@ PipeWireOutput::Open(AudioFormat &audio_format) PW_KEY_MEDIA_CATEGORY, "Playback", PW_KEY_MEDIA_ROLE, "Music", PW_KEY_APP_NAME, "Music Player Daemon", - PW_KEY_NODE_NAME, "mpd", nullptr); + pw_properties_setf(props, PW_KEY_NODE_NAME, "mpd.%s", name); + if (remote != nullptr && target_id == PW_ID_ANY) pw_properties_setf(props, PW_KEY_REMOTE_NAME, "%s", remote);