mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-01 22:58:49 -04:00
Fix infinite parse of recursive definitions
Fixed the infinite parse (and eventually segfault) of recursive definitions. Also fixed the parse of a string slave PCM of direct plugins.
This commit is contained in:
parent
bf174b7046
commit
eccc92a34d
29 changed files with 127 additions and 36 deletions
|
|
@ -1103,7 +1103,9 @@ int _snd_pcm_multi_open(snd_pcm_t **pcmp, const char *name,
|
|||
}
|
||||
|
||||
for (idx = 0; idx < slaves_count; ++idx) {
|
||||
err = snd_pcm_open_slave(&slaves_pcm[idx], root, slaves_conf[idx], stream, mode);
|
||||
err = snd_pcm_open_slave(&slaves_pcm[idx], root,
|
||||
slaves_conf[idx], stream, mode,
|
||||
conf);
|
||||
if (err < 0)
|
||||
goto _free;
|
||||
snd_config_delete(slaves_conf[idx]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue