Commit a71efacd authored by Max Kellermann's avatar Max Kellermann

queue/PlaylistControl: fix return value in PlayNext(), PlayPrevious()

Failure must be indicated by returning false.
parent 871063da
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment