author | Max Kellermann <max@duempel.org> | |
Thu, 11 Jun 2009 13:19:44 +0000 (15:19 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Thu, 11 Jun 2009 13:19:44 +0000 (15:19 +0200) | ||
commit | 579de4a4f77a32f7580bd7ee1563a9a635aec8aa | |
tree | 40bb7a4d485ca0a9b27417e21547cb27eaf97b97 | tree | snapshot |
parent | 8242fe74f64cb509c035272ac9b9780fd36d1d52 | commit | diff |
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.
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 | diff | blob | history |