From 62bdc940c51be3924527ab0d4a27fc7b46d49d81 Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Fri, 16 Jan 2015 19:46:10 +0100 Subject: [PATCH] (playlist.c) Some more explanation on code decisions --- playlist.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/playlist.c b/playlist.c index 793daa6781..23c49fac2f 100644 --- a/playlist.c +++ b/playlist.c @@ -98,6 +98,8 @@ void content_playlist_push(content_playlist_t *playlist, if (strcmp(playlist->entries[i].core_path, core_path)) continue; + /* If top entry, we don't want to push a new entry since + * the top and the entry to be pushed are the same. */ if (i == 0) return;