From a71efacd1e86d7dcac376cd003416673163d9c7e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 5 Sep 2016 19:21:23 +0200 Subject: queue/PlaylistControl: fix return value in PlayNext(), PlayPrevious() Failure must be indicated by returning false. --- src/queue/PlaylistControl.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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()); -- cgit v1.2.3