Missing fixes to make shm on share works. Useable PCM sharing is in!

This commit is contained in:
Abramo Bagnara 2000-10-15 07:12:13 +00:00
parent 8fb9fab748
commit 633815a591
3 changed files with 43 additions and 21 deletions

View file

@ -633,7 +633,7 @@ int _snd_pcm_multi_open(snd_pcm_t **pcmp, char *name, snd_config_t *conf,
cchannel = strtol(m->id, &p, 10);
if (errno || *p || cchannel < 0)
return -EINVAL;
if ((unsigned)cchannel > channels_count)
if ((unsigned)cchannel >= channels_count)
channels_count = cchannel + 1;
}
if (channels_count == 0)