mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-22 23:16:32 +01:00
Exit if no elems are available
This commit is contained in:
parent
536e7b66a5
commit
b43cf63605
1 changed files with 5 additions and 0 deletions
|
@ -1787,6 +1787,11 @@ main (int argc,
|
||||||
mixer_init ();
|
mixer_init ();
|
||||||
mixer_reinit ();
|
mixer_reinit ();
|
||||||
|
|
||||||
|
if (mixer_n_elems == 0) {
|
||||||
|
fprintf(stderr, "No mixer elems found\n");
|
||||||
|
mixer_abort (ERR_NONE, "", 0);
|
||||||
|
}
|
||||||
|
|
||||||
/* setup signal handlers
|
/* setup signal handlers
|
||||||
*/
|
*/
|
||||||
signal (SIGINT, mixer_signal_handler);
|
signal (SIGINT, mixer_signal_handler);
|
||||||
|
|
Loading…
Reference in a new issue