author | Max Kellermann <max.kellermann@gmail.com> | |
Sun, 19 Mar 2017 12:10:43 +0000 (13:10 +0100) | ||
committer | Max Kellermann <max.kellermann@gmail.com> | |
Sun, 19 Mar 2017 12:10:43 +0000 (13:10 +0100) | ||
commit | 86e6f3ac2a45025a7a66655eb0e406a02cee0769 | |
tree | 7bb2ca17c8ac9ba9bb8869aa1713e40439ceceb1 | tree | snapshot |
parent | 214eea183d291601a1a36f9feed9bc7f1ef031de | commit | diff |
mpdclient: eliminate redundant mpd_status_get_volume() calls
Return early from mpdclient_cmd_volume_*(), without calling
mpdclient_get_connection(), if we already know the operation would
have no effect.
Return early from mpdclient_cmd_volume_*(), without calling
mpdclient_get_connection(), if we already know the operation would
have no effect.
src/mpdclient.c | diff | blob | history |