Commits

Tim van der Molen  committed 79bf42a

Actually, mixer errors need not be fatal, so return 0 rather than -1.

  • Participants
  • Parent commits e7790a2

Comments (0)

Files changed (1)

 	if (ret) {
 		LOG_ERRX("snd_mixer_open: %s", snd_strerror(ret));
 		msg_errx("Cannot open mixer: %s", snd_strerror(ret));
-		return -1;
+		return 0;
 	}
 
 	op_alsa_mixer_dev = option_get_string("alsa-mixer-device");
 	op_alsa_mixer_handle = NULL;
 	free(op_alsa_mixer_dev);
 
-	return -1;
+	return 0;
 }
 
 static void