mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
don't force a MEDIA_ROLE property
The application has to set a media role.
This commit is contained in:
parent
6469663265
commit
1bd31c1cf1
2 changed files with 24 additions and 25 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue