summaryrefslogtreecommitdiff
path: root/plugins/musepack
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-05-08 21:14:30 +0200
committerGravatar waker <wakeroid@gmail.com>2011-05-08 21:14:30 +0200
commit3ec7a3d62a7383f19d4d4ee68ea9f0c66c9fe970 (patch)
treee7f95127ad480f446c10c81ffe220e581622e8e2 /plugins/musepack
parentb5ffaa4ae71ce0520d55b99e0501b92c031e860e (diff)
changed few old-style pl_* functions which were working with current playlist with the new ones, working with specific playlist passed as argument
Diffstat (limited to 'plugins/musepack')
-rw-r--r--plugins/musepack/musepack.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/musepack/musepack.c b/plugins/musepack/musepack.c
index 68f93013..2a5d9766 100644
--- a/plugins/musepack/musepack.c
+++ b/plugins/musepack/musepack.c
@@ -401,11 +401,11 @@ musepack_insert (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname) {
else {
prev->endsample = it->startsample-1;
float dur = (prev->endsample - prev->startsample) / (float)si.sample_freq;
- deadbeef->pl_set_item_duration (prev, dur);
+ deadbeef->plt_set_item_duration (plt, prev, dur);
}
if (i == nchapters - 1) {
float dur = (it->endsample - it->startsample) / (float)si.sample_freq;
- deadbeef->pl_set_item_duration (it, dur);
+ deadbeef->plt_set_item_duration (plt, it, dur);
}
if (ch->tag_size > 0) {
uint8_t *tag = ch->tag;
@@ -432,7 +432,7 @@ musepack_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", "MusePack");
- deadbeef->pl_set_item_duration (it, dur);
+ deadbeef->plt_set_item_duration (plt, it, dur);
/*int apeerr = */deadbeef->junk_apev2_read (it, fp);
deadbeef->pl_set_item_replaygain (it, DDB_REPLAYGAIN_ALBUMGAIN, gain_album);