mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 18:56:38 +00:00
mixer(8): Ignore mixer_open() failures for the -a option
The most likely reason mixer_open() will fail is because either the device doesn't exist, or because it is disabled, so there is not reason to kill the application. Instead, continue and print the rest of the enabled mixers. PR: 277615 Sponsored by: The FreeBSD Foundation MFC after: 1 day Reviewed by: dev_submerge.ch Differential Revision: https://reviews.freebsd.org/D45151
This commit is contained in:
parent
5d980fadf7
commit
0e80798518
|
@ -99,7 +99,7 @@ main(int argc, char *argv[])
|
|||
for (i = 0; i < n; i++) {
|
||||
(void)snprintf(buf, sizeof(buf), "/dev/mixer%d", i);
|
||||
if ((m = mixer_open(buf)) == NULL)
|
||||
errx(1, "%s: no such mixer", buf);
|
||||
continue;
|
||||
initctls(m);
|
||||
if (sflag)
|
||||
printrecsrc(m, oflag);
|
||||
|
|
Loading…
Reference in a new issue