mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-03 09:01:52 -05: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
|
|
@ -53,6 +53,10 @@ typedef struct {
|
|||
snd_seq_event_t out_event;
|
||||
int pending;
|
||||
} snd_rawmidi_virtual_t;
|
||||
|
||||
int _snd_seq_open_lconf(snd_seq_t **seqp, const char *name,
|
||||
int streams, int mode, snd_config_t *lconf,
|
||||
snd_config_t *parent_conf);
|
||||
#endif
|
||||
|
||||
static int snd_rawmidi_virtual_close(snd_rawmidi_t *rmidi)
|
||||
|
|
@ -439,7 +443,8 @@ int _snd_rawmidi_virtual_open(snd_rawmidi_t **inputp, snd_rawmidi_t **outputp,
|
|||
|
||||
if (! slave_str)
|
||||
slave_str = "default";
|
||||
err = snd_seq_open_lconf(&seq_handle, slave_str, streams, seq_mode, root);
|
||||
err = _snd_seq_open_lconf(&seq_handle, slave_str, streams, seq_mode,
|
||||
root, conf);
|
||||
if (err < 0)
|
||||
return err;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue