diff options
author | Max Kellermann <max@duempel.org> | 2013-10-01 16:30:20 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-01 16:30:20 +0200 |
commit | 72ef38d4a73c13b2278ac90e76df4247a633579d (patch) | |
tree | 75741f5592b4fd32e1fceb85ccd3d7167de5baef /src/mixer | |
parent | d397ce68dc003870810338b27a374579c3e1dc47 (diff) | |
download | mpd-72ef38d4a73c13b2278ac90e76df4247a633579d.tar.gz mpd-72ef38d4a73c13b2278ac90e76df4247a633579d.tar.xz mpd-72ef38d4a73c13b2278ac90e76df4247a633579d.zip |
mixer/alsa: log snd_mixer_handle_events() errors
Diffstat (limited to 'src/mixer')
-rw-r--r-- | src/mixer/alsa_mixer_plugin.c | 7 |
1 files changed, 6 insertions, 1 deletions
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; } |