alsa: fix compilation

This commit is contained in:
Wim Taymans 2023-01-19 19:18:53 +01:00
parent e0bfd7421b
commit 6af85f2371
2 changed files with 2 additions and 2 deletions

View file

@ -1380,7 +1380,7 @@ SND_CTL_PLUGIN_DEFINE_FUNC(pipewire)
str = getenv("PIPEWIRE_ALSA");
if (str != NULL)
pw_properties_update_string(pw->props, str, strlen(str));
pw_properties_update_string(ctl->props, str, strlen(str));
str = getenv("PIPEWIRE_REMOTE");
if (str != NULL && str[0] != '\0')

View file

@ -1160,7 +1160,7 @@ static int snd_pcm_pipewire_open(snd_pcm_t **pcmp,
str = getenv("PIPEWIRE_REMOTE");
if (str != NULL && str[0])
pw_properties_set(ctl->props, PW_KEY_REMOTE_NAME, str);
pw_properties_set(pw->props, PW_KEY_REMOTE_NAME, str);
node_name = pw_properties_get(pw->props, PW_KEY_NODE_NAME);
if (pw_properties_get(pw->props, PW_KEY_MEDIA_NAME) == NULL)