mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-06 13:29:59 -05:00
simple mixer: fix compilation with gcc 2.x
Move a variable declaration to the top of the function for compatibility with gcc 2.x.
This commit is contained in:
parent
bac9a7de83
commit
8737d1843c
1 changed files with 1 additions and 1 deletions
|
|
@ -597,8 +597,8 @@ static int selem_write(snd_mixer_elem_t *elem)
|
|||
|
||||
static void selem_free(snd_mixer_elem_t *elem)
|
||||
{
|
||||
assert(snd_mixer_elem_get_type(elem) == SND_MIXER_ELEM_SIMPLE);
|
||||
selem_none_t *simple = snd_mixer_elem_get_private(elem);
|
||||
assert(snd_mixer_elem_get_type(elem) == SND_MIXER_ELEM_SIMPLE);
|
||||
if (simple->selem.id)
|
||||
snd_mixer_selem_id_free(simple->selem.id);
|
||||
free(simple);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue