Skip to content

Commit 63802ac

Browse files
committed
ao_pipewire: avoid setting any media.role
By default, WirePlumber restores the volume of each application to whatever the last application with the same media role used. This is completely insane behavior, and I couldn’t find any way for a user to opt out of it on my end. The `state-stream.lua` script responsible for this mess only uses media.role if the property is present, so the only reliable workaround is simply not to set one at all.
1 parent 2e5e293 commit 63802ac

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

audio/out/ao_pipewire.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,6 @@ static int init(struct ao *ao)
577577
struct pw_properties *props = pw_properties_new(
578578
PW_KEY_MEDIA_TYPE, "Audio",
579579
PW_KEY_MEDIA_CATEGORY, "Playback",
580-
PW_KEY_MEDIA_ROLE, ao->init_flags & AO_INIT_MEDIA_ROLE_MUSIC ? "Music" : "Movie",
581580
PW_KEY_NODE_NAME, ao->client_name,
582581
PW_KEY_NODE_DESCRIPTION, ao->client_name,
583582
PW_KEY_APP_NAME, ao->client_name,

0 commit comments

Comments
 (0)