Skip to content

Commit

Permalink
playlist: fix plt_clear regression
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksiy-Yakovenko committed Nov 18, 2023
1 parent 773e520 commit fd2be48
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/playlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -881,12 +881,17 @@ plt_clear (playlist_t *plt) {
pl_lock ();

it = plt->head[PL_MAIN];
plt->head[PL_MAIN] = NULL;
plt->head[PL_SEARCH] = NULL;
plt->count[PL_MAIN] = 0;
plt->count[PL_SEARCH] = 0;
plt->totaltime = 0;
plt->seltime = 0;
plt->head[PL_MAIN] = NULL;
plt->head[PL_SEARCH] = NULL;
plt->tail[PL_MAIN] = NULL;
plt->tail[PL_SEARCH] = NULL;
plt->current_row[PL_MAIN] = -1;
plt->current_row[PL_SEARCH] = -1;
plt->scroll = 0;

pl_unlock ();

Expand Down

0 comments on commit fd2be48

Please sign in to comment.