aboutsummaryrefslogtreecommitdiffstats
path: root/src/mixer/AlsaMixerPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-05 22:00:33 +0100
committerMax Kellermann <max@duempel.org>2014-01-06 18:27:26 +0100
commit08f5b9f1f9292a6e9e4a6ede16bb61b38bbae89d (patch)
tree254e3c5078082c78249c2b1ad568d9eba33f5d89 /src/mixer/AlsaMixerPlugin.cxx
parent793962c5b86cd063036a2d28907b0b33012483e1 (diff)
downloadmpd-08f5b9f1f9292a6e9e4a6ede16bb61b38bbae89d.tar.gz
mpd-08f5b9f1f9292a6e9e4a6ede16bb61b38bbae89d.tar.xz
mpd-08f5b9f1f9292a6e9e4a6ede16bb61b38bbae89d.zip
event/MultiSocketMonitor: add method ClearSocketList()
Diffstat (limited to 'src/mixer/AlsaMixerPlugin.cxx')
-rw-r--r--src/mixer/AlsaMixerPlugin.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mixer/AlsaMixerPlugin.cxx b/src/mixer/AlsaMixerPlugin.cxx
index f0d9b8007..4f92e697d 100644
--- a/src/mixer/AlsaMixerPlugin.cxx
+++ b/src/mixer/AlsaMixerPlugin.cxx
@@ -91,8 +91,10 @@ static constexpr Domain alsa_mixer_domain("alsa_mixer");
int
AlsaMixerMonitor::PrepareSockets()
{
- if (mixer == nullptr)
+ if (mixer == nullptr) {
+ ClearSocketList();
return -1;
+ }
int count = snd_mixer_poll_descriptors_count(mixer);
if (count < 0)