diff options
author | waker <wakeroid@gmail.com> | 2011-05-08 21:14:30 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-05-08 21:14:30 +0200 |
commit | 3ec7a3d62a7383f19d4d4ee68ea9f0c66c9fe970 (patch) | |
tree | e7f95127ad480f446c10c81ffe220e581622e8e2 /plugins/cdda | |
parent | b5ffaa4ae71ce0520d55b99e0501b92c031e860e (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/cdda')
-rw-r--r-- | plugins/cdda/cdda.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/cdda/cdda.c b/plugins/cdda/cdda.c index 6c4d6af7..79f11323 100644 --- a/plugins/cdda/cdda.c +++ b/plugins/cdda/cdda.c @@ -321,7 +321,7 @@ insert_single_track (CdIo_t* cdio, ddb_playlist_t *plt, DB_playItem_t *after, co DB_playItem_t *it = deadbeef->pl_item_alloc_init (tmp, plugin.plugin.id); deadbeef->pl_add_meta (it, ":FILETYPE", "cdda"); - deadbeef->pl_set_item_duration (it, (float)sector_count / 75.0); + deadbeef->plt_set_item_duration (plt, it, (float)sector_count / 75.0); snprintf (tmp, sizeof (tmp), "CD Track %02d", track_nr); deadbeef->pl_add_meta (it, "title", tmp); @@ -591,7 +591,7 @@ cda_action_add_cd (DB_plugin_action_t *act, DB_playItem_t *it) ddb_playlist_t *plt = deadbeef->plt_get_curr (); if (plt) { deadbeef->pl_add_files_begin (plt); - deadbeef->pl_add_file ("all.cda", NULL, NULL); + deadbeef->plt_add_file (plt, "all.cda", NULL, NULL); deadbeef->pl_add_files_end (); deadbeef->plt_modified (plt); deadbeef->plt_unref (plt); |