Skip to content

Commit

Permalink
fix: playlist plugins were not saving ranges correctly
Browse files Browse the repository at this point in the history
the plugin save() function was not being called according to its API. hence plugins could get different results trying to save a playlist range as DBPL vs M3U.
  • Loading branch information
rsekman committed Sep 1, 2024
1 parent a50e3a5 commit 6310e28
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/playlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -2272,10 +2272,10 @@ plt_save(
for (int e = 0; exts[e]; e++) {
if (!strcasecmp (exts[e], ext + 1)) {
int res = plug[i]->save (
(ddb_playlist_t *)plt,
fname,
(DB_playItem_t *)_current_playlist->head[PL_MAIN],
NULL);
(ddb_playlist_t *)plt,
fname,
(DB_playItem_t *)first,
(DB_playItem_t *)last);
UNLOCK;
return res;
}
Expand Down

0 comments on commit 6310e28

Please sign in to comment.