From 72ef38d4a73c13b2278ac90e76df4247a633579d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 1 Oct 2013 16:30:20 +0200 Subject: mixer/alsa: log snd_mixer_handle_events() errors --- src/mixer/alsa_mixer_plugin.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/mixer') diff --git a/src/mixer/alsa_mixer_plugin.c b/src/mixer/alsa_mixer_plugin.c index 22e4e22bd..cecf44db9 100644 --- a/src/mixer/alsa_mixer_plugin.c +++ b/src/mixer/alsa_mixer_plugin.c @@ -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; } -- cgit v1.2.3