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/shn/shn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/shn') diff --git a/plugins/shn/shn.c b/plugins/shn/shn.c index c8e0a773..c7f20149 100644 --- a/plugins/shn/shn.c +++ b/plugins/shn/shn.c @@ -896,7 +896,7 @@ shn_insert (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname) { DB_playItem_t *it = deadbeef->pl_item_alloc_init (fname, plugin.plugin.id); deadbeef->pl_add_meta (it, ":FILETYPE", "Shorten"); - deadbeef->pl_set_item_duration (it, tmp_file->wave_header.length); + deadbeef->plt_set_item_duration (plt, it, tmp_file->wave_header.length); int apeerr = deadbeef->junk_apev2_read (it, tmp_file->vars.fd); int v2err = deadbeef->junk_id3v2_read (it, tmp_file->vars.fd); -- cgit v1.2.3