From 6310e2884442252aab5bd2fe05667dd27843df0f Mon Sep 17 00:00:00 2001 From: Robin Ekman Date: Sun, 1 Sep 2024 02:40:57 +0200 Subject: [PATCH] fix: playlist plugins were not saving ranges correctly 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. --- src/playlist.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/playlist.c b/src/playlist.c index 3e646d6579..246272ba22 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -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; }