summaryrefslogtreecommitdiff
path: root/plugins/sndfile/sndfile.c
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/sndfile/sndfile.c
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/sndfile/sndfile.c')
-rw-r--r--plugins/sndfile/sndfile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/sndfile/sndfile.c b/plugins/sndfile/sndfile.c
index e8a6231e..259fdfd6 100644
--- a/plugins/sndfile/sndfile.c
+++ b/plugins/sndfile/sndfile.c
@@ -294,7 +294,7 @@ sndfile_seek (DB_fileinfo_t *_info, float sec) {
}
static DB_playItem_t *
-sndfile_insert (DB_playItem_t *after, const char *fname) {
+sndfile_insert (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname) {
SF_INFO inf;
sndfile_info_t info;
memset (&info, 0, sizeof (info));
@@ -355,7 +355,7 @@ sndfile_insert (DB_playItem_t *after, const char *fname) {
deadbeef->pl_add_meta (it, ":BITRATE", s);
- DB_playItem_t *cue_after = deadbeef->pl_insert_cue (after, it, totalsamples, samplerate);
+ DB_playItem_t *cue_after = deadbeef->plt_insert_cue (plt, after, it, totalsamples, samplerate);
if (cue_after) {
deadbeef->pl_item_unref (it);
deadbeef->pl_item_unref (cue_after);
@@ -363,7 +363,7 @@ sndfile_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;