don't force a MEDIA_ROLE property

The application has to set a media role.
This commit is contained in:
Wim Taymans 2020-10-14 12:11:35 +02:00
parent 6469663265
commit 1bd31c1cf1
2 changed files with 24 additions and 25 deletions

View file

@ -419,8 +419,6 @@ static int snd_pcm_pipewire_prepare(snd_pcm_ioplug_t *io)
pw_properties_set(props, PW_KEY_MEDIA_CATEGORY,
io->stream == SND_PCM_STREAM_PLAYBACK ?
"Playback" : "Capture");
if (pw_properties_get(props, PW_KEY_MEDIA_ROLE) == NULL)
pw_properties_set(props, PW_KEY_MEDIA_ROLE, "Music");
pw->stream = pw_stream_new(pw->core, pw->node_name, props);
if (pw->stream == NULL)