summaryrefslogtreecommitdiff
path: root/src/command/PlayerCommands.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2016-03-05 19:16:39 +0100
committerMax Kellermann <max@duempel.org>2016-03-05 19:16:39 +0100
commitb24a5e06620b41546c75bc693277857feb1fa506 (patch)
treeaf4f8c98d34ccd859085be8d544894d226fbd9e8 /src/command/PlayerCommands.cxx
parente52ac0b187bc822eb45d5589e1d9637a348e7a54 (diff)
Partition: add method EmitIdle()
Prepare for moving idle events to class Partition. Right now, it's just a wrapper for idle_add().
Diffstat (limited to 'src/command/PlayerCommands.cxx')
-rw-r--r--src/command/PlayerCommands.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/command/PlayerCommands.cxx b/src/command/PlayerCommands.cxx
index 1eef18a0f..5f5f1e1e6 100644
--- a/src/command/PlayerCommands.cxx
+++ b/src/command/PlayerCommands.cxx
@@ -28,6 +28,7 @@
#include "mixer/Volume.hxx"
#include "Partition.hxx"
#include "Instance.hxx"
+#include "Idle.hxx"
#include "AudioFormat.hxx"
#include "ReplayGainConfig.hxx"
@@ -348,6 +349,7 @@ handle_replay_gain_mode(Client &client, Request args, Response &r)
}
client.partition.outputs.SetReplayGainMode(replay_gain_get_real_mode(client.playlist.queue.random));
+ client.partition.EmitIdle(IDLE_OPTIONS);
return CommandResult::OK;
}