Code

mpdclient: eliminate redundant mpd_status_get_volume() calls
authorMax Kellermann <max.kellermann@gmail.com>
Sun, 19 Mar 2017 12:10:43 +0000 (13:10 +0100)
committerMax Kellermann <max.kellermann@gmail.com>
Sun, 19 Mar 2017 12:10:43 +0000 (13:10 +0100)
commit86e6f3ac2a45025a7a66655eb0e406a02cee0769
tree7bb2ca17c8ac9ba9bb8869aa1713e40439ceceb1
parent214eea183d291601a1a36f9feed9bc7f1ef031de
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.
src/mpdclient.c