Skip to content

Commit

Permalink
ao_pipewire: set media role during init()
Browse files Browse the repository at this point in the history
wireplumber uses the media role when the node is first created.
To have the property available at this point reliably we need to set it
directly when creating the stream/node.
  • Loading branch information
t-8ch authored and sfan5 committed Jul 31, 2023
1 parent 6e02354 commit b3b7ee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion audio/out/ao_pipewire.c
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ static int init(struct ao *ao)
struct pw_properties *props = pw_properties_new(
PW_KEY_MEDIA_TYPE, "Audio",
PW_KEY_MEDIA_CATEGORY, "Playback",
PW_KEY_MEDIA_ROLE, "Movie",
PW_KEY_MEDIA_ROLE, ao->init_flags & AO_INIT_MEDIA_ROLE_MUSIC ? "Music" : "Movie",
PW_KEY_NODE_NAME, ao->client_name,
PW_KEY_NODE_DESCRIPTION, ao->client_name,
PW_KEY_APP_NAME, ao->client_name,
Expand Down

0 comments on commit b3b7ee8

Please sign in to comment.