summaryrefslogtreecommitdiff
path: root/plugins/dca
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-04-29 22:38:31 +0200
committerGravatar waker <wakeroid@gmail.com>2011-04-29 22:38:31 +0200
commit20627955d1184b5f07b8f7910a59f15cdc4802c8 (patch)
treeafc2111b9d3be287d3e82dcc54b23f84c88e4183 /plugins/dca
parentcec677f6022983afbc144a52eff8a719a1086577 (diff)
changed some API entry points to make it possible working with specific playlists, and not just the current one
Diffstat (limited to 'plugins/dca')
-rw-r--r--plugins/dca/dcaplug.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/dca/dcaplug.c b/plugins/dca/dcaplug.c
index 6262d763..29f572e3 100644
--- a/plugins/dca/dcaplug.c
+++ b/plugins/dca/dcaplug.c
@@ -622,7 +622,7 @@ dts_seek (DB_fileinfo_t *_info, float time) {
}
static DB_playItem_t *
-dts_insert (DB_playItem_t *after, const char *fname) {
+dts_insert (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname) {
DB_FILE *fp = deadbeef->fopen (fname);
if (!fp) {
trace ("dca: failed to open %s\n", fname);
@@ -690,7 +690,7 @@ dts_insert (DB_playItem_t *after, const char *fname) {
// embedded cue
DB_playItem_t *cue = NULL;
- cue = deadbeef->pl_insert_cue (after, it, totalsamples, state.sample_rate);
+ cue = deadbeef->plt_insert_cue (plt, after, it, totalsamples, state.sample_rate);
if (cue) {
deadbeef->pl_item_unref (it);
deadbeef->pl_item_unref (cue);
@@ -698,7 +698,7 @@ dts_insert (DB_playItem_t *after, const char *fname) {
}
deadbeef->pl_add_meta (it, "title", NULL);
- after = deadbeef->pl_insert_item (after, it);
+ after = deadbeef->plt_insert_item (plt, after, it);
deadbeef->pl_item_unref (it);
return after;