summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2021-08-10 11:30:23 +0200
committerMax Kellermann <max@musicpd.org>2021-08-10 11:30:25 +0200
commit0dacde32f258cf228b9944ef7c6c452f4f06dec2 (patch)
tree8b3eaa0bd37dea4f5bc5ee7ffc69c20513591de9
parent528e05f0250d9f92c00f56f259f60a1b9c756f4f (diff)
output/pipewire: append output name to PW node name
-rw-r--r--src/output/plugins/PipeWireOutputPlugin.cxx3
1 files changed, 2 insertions, 1 deletions
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);