alsa: reload alsa configuration

Fixes #332
This commit is contained in:
Wim Taymans 2020-11-05 10:00:25 +01:00
parent 17e3087397
commit 5a98a9b1cd
3 changed files with 6 additions and 0 deletions

View file

@ -540,6 +540,8 @@ impl_init(const struct spa_handle_factory *factory,
reset_props(&this->props);
snd_config_update_free_global();
if (info && (str = spa_dict_lookup(info, SPA_KEY_API_ALSA_PATH)))
snprintf(this->props.device, 64, "%s", str);