mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
parent
17e3087397
commit
5a98a9b1cd
3 changed files with 6 additions and 0 deletions
|
|
@ -540,6 +540,8 @@ impl_init(const struct spa_handle_factory *factory,
|
||||||
|
|
||||||
reset_props(&this->props);
|
reset_props(&this->props);
|
||||||
|
|
||||||
|
snd_config_update_free_global();
|
||||||
|
|
||||||
if (info && (str = spa_dict_lookup(info, SPA_KEY_API_ALSA_PATH)))
|
if (info && (str = spa_dict_lookup(info, SPA_KEY_API_ALSA_PATH)))
|
||||||
snprintf(this->props.device, 64, "%s", str);
|
snprintf(this->props.device, 64, "%s", str);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -758,6 +758,8 @@ impl_init(const struct spa_handle_factory *factory,
|
||||||
|
|
||||||
spa_list_init(&this->ready);
|
spa_list_init(&this->ready);
|
||||||
|
|
||||||
|
snd_config_update_free_global();
|
||||||
|
|
||||||
for (i = 0; info && i < info->n_items; i++) {
|
for (i = 0; info && i < info->n_items; i++) {
|
||||||
if (!strcmp(info->items[i].key, SPA_KEY_API_ALSA_PATH)) {
|
if (!strcmp(info->items[i].key, SPA_KEY_API_ALSA_PATH)) {
|
||||||
snprintf(this->props.device, 63, "%s", info->items[i].value);
|
snprintf(this->props.device, 63, "%s", info->items[i].value);
|
||||||
|
|
|
||||||
|
|
@ -779,6 +779,8 @@ impl_init(const struct spa_handle_factory *factory,
|
||||||
spa_list_init(&this->free);
|
spa_list_init(&this->free);
|
||||||
spa_list_init(&this->ready);
|
spa_list_init(&this->ready);
|
||||||
|
|
||||||
|
snd_config_update_free_global();
|
||||||
|
|
||||||
for (i = 0; info && i < info->n_items; i++) {
|
for (i = 0; info && i < info->n_items; i++) {
|
||||||
if (!strcmp(info->items[i].key, SPA_KEY_API_ALSA_PATH)) {
|
if (!strcmp(info->items[i].key, SPA_KEY_API_ALSA_PATH)) {
|
||||||
snprintf(this->props.device, 63, "%s", info->items[i].value);
|
snprintf(this->props.device, 63, "%s", info->items[i].value);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue