mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:05:41 +01:00
Fix crash with enum controls
Fix crash in display enum controls.
This commit is contained in:
parent
ae524665a9
commit
ff1354844a
1 changed files with 1 additions and 3 deletions
|
@ -962,8 +962,7 @@ mixer_update_cbar (int elem_index)
|
|||
snd_mixer_selem_get_playback_switch(elem, chn_right, &swr);
|
||||
extra_info = !swl && !swr ? " [Off]" : "";
|
||||
}
|
||||
#if 0
|
||||
if (mixer_type[elem_index] & MIXER_ELEM_ENUM) {
|
||||
if (mixer_type[elem_index] == MIXER_ELEM_ENUM) {
|
||||
while (1) {
|
||||
unsigned int eidx, err, length;
|
||||
char tmp[50];
|
||||
|
@ -982,7 +981,6 @@ mixer_update_cbar (int elem_index)
|
|||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
display_item_info(elem_index, sid, extra_info);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue