diff options
author | Max Kellermann <max@duempel.org> | 2015-11-11 16:50:57 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-11-11 16:50:57 +0100 |
commit | 36239895bd822d5fd3087218fbb10986430b8c9b (patch) | |
tree | 6d0891ec5b68e2686ef8c000ad4b1d2a44157af4 /src/command/PlayerCommands.cxx | |
parent | 738583e3d4cd7a35aec545448f86a8c097768785 (diff) | |
download | mpd-36239895bd822d5fd3087218fbb10986430b8c9b.tar.gz mpd-36239895bd822d5fd3087218fbb10986430b8c9b.tar.xz mpd-36239895bd822d5fd3087218fbb10986430b8c9b.zip |
player/Control: add Lock prefix to locking method names
Diffstat (limited to 'src/command/PlayerCommands.cxx')
-rw-r--r-- | src/command/PlayerCommands.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/command/PlayerCommands.cxx b/src/command/PlayerCommands.cxx index 11cde2e98..b9fc7d578 100644 --- a/src/command/PlayerCommands.cxx +++ b/src/command/PlayerCommands.cxx @@ -100,9 +100,9 @@ handle_pause(Client &client, Request args, Response &r) if (!args.Parse(0, pause_flag, r)) return CommandResult::ERROR; - client.player_control.SetPause(pause_flag); + client.player_control.LockSetPause(pause_flag); } else - client.player_control.Pause(); + client.player_control.LockPause(); return CommandResult::OK; } @@ -113,7 +113,7 @@ handle_status(Client &client, gcc_unused Request args, Response &r) const char *state = nullptr; int song; - const auto player_status = client.player_control.GetStatus(); + const auto player_status = client.player_control.LockGetStatus(); switch (player_status.state) { case PlayerState::STOP: @@ -284,7 +284,7 @@ CommandResult handle_clearerror(Client &client, gcc_unused Request args, gcc_unused Response &r) { - client.player_control.ClearError(); + client.player_control.LockClearError(); return CommandResult::OK; } |