mixer/alsa: log snd_mixer_handle_events() errors

This commit is contained in:
Max Kellermann 2013-10-01 16:30:20 +02:00
parent d397ce68dc
commit 72ef38d4a7

View File

@ -178,7 +178,12 @@ alsa_mixer_source_dispatch(GSource *_source,
{
struct alsa_mixer_source *source = (struct alsa_mixer_source *)_source;
snd_mixer_handle_events(source->mixer);
int err = snd_mixer_handle_events(source->mixer);
if (err < 0) {
g_warning("snd_mixer_handle_events() failed: %s",
snd_strerror(err));
}
return true;
}