aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/playlist.c')
-rw-r--r--src/playlist.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/playlist.c b/src/playlist.c
index cce2924c1..fb56721a3 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -828,8 +828,11 @@ bool getPlaylistRandomStatus(void)
void setPlaylistRepeatStatus(bool status)
{
+ if (status == playlist.queue.repeat)
+ return;
+
if (playlist_state == PLAYLIST_STATE_PLAY &&
- playlist.queue.repeat && !status && playlist.queued == 0)
+ playlist.queue.repeat && playlist.queued == 0)
clearPlayerQueue();
playlist.queue.repeat = status;