diff options
author | Max Kellermann <max@musicpd.org> | 2016-09-05 19:21:23 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2016-09-05 19:21:23 +0200 |
commit | a71efacd1e86d7dcac376cd003416673163d9c7e (patch) | |
tree | 7c36afe8b009adc127d1fddcda8517e26b5374f5 /src/queue | |
parent | 871063dab749cb03729d49a838f76634426f30ad (diff) |
queue/PlaylistControl: fix return value in PlayNext(), PlayPrevious()
Failure must be indicated by returning false.
Diffstat (limited to 'src/queue')
-rw-r--r-- | src/queue/PlaylistControl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/queue/PlaylistControl.cxx b/src/queue/PlaylistControl.cxx index daaa45b78..8db0cda7d 100644 --- a/src/queue/PlaylistControl.cxx +++ b/src/queue/PlaylistControl.cxx @@ -124,7 +124,7 @@ playlist::PlayNext(PlayerControl &pc, Error &error) if (!playing) { error.Set(playlist_domain, int(PlaylistResult::NOT_PLAYING), "Not playing"); - return true; + return false; } assert(!queue.IsEmpty()); @@ -176,7 +176,7 @@ playlist::PlayPrevious(PlayerControl &pc, Error &error) if (!playing) { error.Set(playlist_domain, int(PlaylistResult::NOT_PLAYING), "Not playing"); - return true; + return false; } assert(!queue.IsEmpty()); |