aconnect: fix error handler for alsa-lib <= 1.2.15
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
bcbdf24e01
commit
d0bdee7a32
1 changed files with 5 additions and 5 deletions
|
|
@ -42,8 +42,8 @@ static void error_handler(const char *file, int line, const char *function, int
|
|||
va_start(arg, fmt);
|
||||
fprintf(stderr, "ALSA lib %s:%i:(%s) ", file, line, function);
|
||||
vfprintf(stderr, fmt, arg);
|
||||
if (err)
|
||||
fprintf(stderr, ": %s", snd_strerror(err));
|
||||
if (errcode)
|
||||
fprintf(stderr, ": %s", snd_strerror(errcode));
|
||||
putc('\n', stderr);
|
||||
va_end(arg);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue