History

ao_pipewire: set media role during init()

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.

Thomas Weißschuh committed 3 years ago

Commit b3b7ee81 parent 6e023541 file · +1 −1Browse files

Unified · Split

audio/out/ao_pipewire.c+1−1
@@ -553,7 +553,7 @@ static int init(struct ao *ao) · 552 unmodified lines
553 struct pw_properties *props = pw_properties_new(553 struct pw_properties *props = pw_properties_new(
554 PW_KEY_MEDIA_TYPE, "Audio",554 PW_KEY_MEDIA_TYPE, "Audio",
555 PW_KEY_MEDIA_CATEGORY, "Playback",555 PW_KEY_MEDIA_CATEGORY, "Playback",
556 PW_KEY_MEDIA_ROLE, "Movie",556 PW_KEY_MEDIA_ROLE, ao->init_flags & AO_INIT_MEDIA_ROLE_MUSIC ? "Music" : "Movie",
557 PW_KEY_NODE_NAME, ao->client_name,557 PW_KEY_NODE_NAME, ao->client_name,
558 PW_KEY_NODE_DESCRIPTION, ao->client_name,558 PW_KEY_NODE_DESCRIPTION, ao->client_name,
559 PW_KEY_APP_NAME, ao->client_name,559 PW_KEY_APP_NAME, ao->client_name,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t