From 3ec7a3d62a7383f19d4d4ee68ea9f0c66c9fe970 Mon Sep 17 00:00:00 2001 From: waker Date: Sun, 8 May 2011 21:14:30 +0200 Subject: changed few old-style pl_* functions which were working with current playlist with the new ones, working with specific playlist passed as argument --- plugins/gme/cgme.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/gme') diff --git a/plugins/gme/cgme.c b/plugins/gme/cgme.c index 35070d7c..57788851 100644 --- a/plugins/gme/cgme.c +++ b/plugins/gme/cgme.c @@ -333,10 +333,10 @@ cgme_insert (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname) { cgme_add_meta (it, "track", trk); if (inf->length == -1 || inf->length == 0) { float songlength = deadbeef->conf_get_float ("gme.songlength", 3); - deadbeef->pl_set_item_duration (it, songlength * 60.f); + deadbeef->plt_set_item_duration (plt, it, songlength * 60.f); } else { - deadbeef->pl_set_item_duration (it, (float)inf->length/1000.f); + deadbeef->plt_set_item_duration (plt, it, (float)inf->length/1000.f); } const char *ext = fname + strlen (fname) - 1; while (ext >= fname && *ext != '.') { -- cgit v1.2.3