Commit 72ef38d4 authored by Max Kellermann's avatar Max Kellermann

mixer/alsa: log snd_mixer_handle_events() errors

parent d397ce68
...@@ -178,7 +178,12 @@ alsa_mixer_source_dispatch(GSource *_source, ...@@ -178,7 +178,12 @@ alsa_mixer_source_dispatch(GSource *_source,
{ {
struct alsa_mixer_source *source = (struct alsa_mixer_source *)_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; return true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment