From 342333f72a484e9f394026666c4b20e54dc9b756 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 10 Aug 2013 13:54:20 +0200 Subject: mixer/alsa: invoke InvalidateSockets() in constructor --- src/mixer/AlsaMixerPlugin.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mixer/AlsaMixerPlugin.cxx b/src/mixer/AlsaMixerPlugin.cxx index 5191826c5..7bfdbb7eb 100644 --- a/src/mixer/AlsaMixerPlugin.cxx +++ b/src/mixer/AlsaMixerPlugin.cxx @@ -41,7 +41,9 @@ class AlsaMixerMonitor final : private MultiSocketMonitor { public: AlsaMixerMonitor(EventLoop &_loop, snd_mixer_t *_mixer) - :MultiSocketMonitor(_loop), mixer(_mixer) {} + :MultiSocketMonitor(_loop), mixer(_mixer) { + InvalidateSockets(); + } private: virtual int PrepareSockets() override; -- cgit v1.2.3