commit 8544abcd4a1bf2bfd027aa1fe4a458f07f794737 from: Omar Polo date: Wed Feb 16 20:33:05 2022 UTC fix repeat all The check is useless, the wraparound is already handled in the following line. commit - 946944db0c7e4c83a9842b6c8fc9870616d44364 commit + 8544abcd4a1bf2bfd027aa1fe4a458f07f794737 blob - 46a6ac4889b64d4b782b42e6fe09adf838705cd4 blob + 7106042c55796bda6cd1e212e81d2c0438c92613 --- playlist.c +++ playlist.c @@ -56,7 +56,7 @@ playlist_current(void) const char * playlist_advance(void) { - if (playlist.len == 0 || play_off+1 == playlist.len) + if (playlist.len == 0) return NULL; play_off++;