mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
Fix segfault with bindings parameters of dmix/dshare
Fix segfault with bindings parameters of dmix/dshare (bug#2235).
This commit is contained in:
parent
bbbb06bc8f
commit
f725af9987
1 changed files with 2 additions and 1 deletions
|
|
@ -1392,7 +1392,8 @@ int snd_pcm_direct_parse_bindings(snd_pcm_direct_t *dmix,
|
|||
}
|
||||
bindings[cchannel] = schannel;
|
||||
}
|
||||
if (dmix->type == SND_PCM_TYPE_DSNOOP)
|
||||
if (dmix->type == SND_PCM_TYPE_DSNOOP ||
|
||||
! dmix->bindings)
|
||||
goto __skip_same_dst;
|
||||
for (chn = 0; chn < count; chn++) {
|
||||
for (chn1 = 0; chn1 < count; chn1++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue