Code

mpdclient: return from mpdclient_cmd_crop() on error
authorMax Kellermann <max@duempel.org>
Thu, 11 Jun 2009 13:19:44 +0000 (15:19 +0200)
committerMax Kellermann <max@duempel.org>
Thu, 11 Jun 2009 13:19:44 +0000 (15:19 +0200)
commit579de4a4f77a32f7580bd7ee1563a9a635aec8aa
tree40bb7a4d485ca0a9b27417e21547cb27eaf97b97
parent8242fe74f64cb509c035272ac9b9780fd36d1d52
mpdclient: return from mpdclient_cmd_crop() on error

When the playlist is too small for crop, or when MPD is not playing,
"return" from mpdclient_cmd_crop() instead of stepping over the
command list block.  This patch also simplifies the command list, and
frees the mpd_Status object before all checks are done.
src/mpdclient.c