Exit if no elems are available

This commit is contained in:
Abramo Bagnara 2001-02-20 08:51:57 +00:00
parent 536e7b66a5
commit b43cf63605

View file

@ -1787,6 +1787,11 @@ main (int argc,
mixer_init ();
mixer_reinit ();
if (mixer_n_elems == 0) {
fprintf(stderr, "No mixer elems found\n");
mixer_abort (ERR_NONE, "", 0);
}
/* setup signal handlers
*/
signal (SIGINT, mixer_signal_handler);