diff options
author | Max Kellermann <max@musicpd.org> | 2016-12-27 23:06:34 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2016-12-28 01:15:08 +0100 |
commit | b042095ac239be78a704293f217328b7f1b4cc16 (patch) | |
tree | fcf5cc24aa212066562cef91dc24df2c89fd402f /src/mixer | |
parent | 3413d1bf23a7ba4f33d015d1ec5024c191fe08e5 (diff) |
event/Loop: use std::chrono
Diffstat (limited to 'src/mixer')
-rw-r--r-- | src/mixer/plugins/AlsaMixerPlugin.cxx | 8 |
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 |