mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-28 05:40:23 -04:00
- fixed the invalid (positive) return value from snd_mixer_set_xxx()
functions.
This commit is contained in:
parent
8503e9626e
commit
19e8aa67db
1 changed files with 3 additions and 1 deletions
|
|
@ -597,7 +597,9 @@ static int selem_write(snd_mixer_elem_t *elem)
|
|||
if ((err = snd_hctl_elem_write(c->elem, &ctl)) < 0)
|
||||
return err;
|
||||
/* update the element, don't remove */
|
||||
return selem_read(elem);
|
||||
err = selem_read(elem);
|
||||
if (err < 0)
|
||||
return err;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue