Skip to content

Commit e13ade3

Browse files
committed
ao_pulse: set media.role if --audio-set-media-role enabled
1 parent a962a2b commit e13ade3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

audio/out/ao_pulse.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,11 @@ static int init(struct ao *ao)
405405
}
406406
(void)pa_proplist_sets(proplist, PA_PROP_MEDIA_ICON_NAME, ao->client_name);
407407

408+
if (ao->set_media_role)
409+
(void)pa_proplist_sets(proplist, PA_PROP_MEDIA_ROLE,
410+
ao->init_flags & AO_INIT_MEDIA_ROLE_MUSIC
411+
? "music" : "video");
412+
408413
if (!(format = pa_format_info_new()))
409414
goto unlock_and_fail;
410415

0 commit comments

Comments
 (0)