summaryrefslogtreecommitdiff
path: root/src/mixer
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2016-12-27 23:06:34 +0100
committerMax Kellermann <max@musicpd.org>2016-12-28 01:15:08 +0100
commitb042095ac239be78a704293f217328b7f1b4cc16 (patch)
treefcf5cc24aa212066562cef91dc24df2c89fd402f /src/mixer
parent3413d1bf23a7ba4f33d015d1ec5024c191fe08e5 (diff)
event/Loop: use std::chrono
Diffstat (limited to 'src/mixer')
-rw-r--r--src/mixer/plugins/AlsaMixerPlugin.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mixer/plugins/AlsaMixerPlugin.cxx b/src/mixer/plugins/AlsaMixerPlugin.cxx
index be43b3d33..ee1a72cc5 100644
--- a/src/mixer/plugins/AlsaMixerPlugin.cxx
+++ b/src/mixer/plugins/AlsaMixerPlugin.cxx
@@ -55,7 +55,7 @@ private:
InvalidateSockets();
}
- virtual int PrepareSockets() override;
+ virtual std::chrono::steady_clock::duration PrepareSockets() override;
virtual void DispatchSockets() override;
};
@@ -93,12 +93,12 @@ public:
static constexpr Domain alsa_mixer_domain("alsa_mixer");
-int
+std::chrono::steady_clock::duration
AlsaMixerMonitor::PrepareSockets()
{
if (mixer == nullptr) {
ClearSocketList();
- return -1;
+ return std::chrono::steady_clock::duration(-1);
}
int count = snd_mixer_poll_descriptors_count(mixer);
@@ -112,7 +112,7 @@ AlsaMixerMonitor::PrepareSockets()
count = 0;
ReplaceSocketList(pfds, count);
- return -1;
+ return std::chrono::steady_clock::duration(-1);
}
void