diff options
author | waker <wakeroid@gmail.com> | 2011-04-29 22:38:31 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-04-29 22:38:31 +0200 |
commit | 20627955d1184b5f07b8f7910a59f15cdc4802c8 (patch) | |
tree | afc2111b9d3be287d3e82dcc54b23f84c88e4183 /plugins/tta | |
parent | cec677f6022983afbc144a52eff8a719a1086577 (diff) |
changed some API entry points to make it possible working with specific playlists, and not just the current one
Diffstat (limited to 'plugins/tta')
-rw-r--r-- | plugins/tta/ttaplug.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/tta/ttaplug.c b/plugins/tta/ttaplug.c index 95bac3c5..30f7fc38 100644 --- a/plugins/tta/ttaplug.c +++ b/plugins/tta/ttaplug.c @@ -178,7 +178,7 @@ tta_seek (DB_fileinfo_t *_info, float time) { } static DB_playItem_t * -tta_insert (DB_playItem_t *after, const char *fname) { +tta_insert (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname) { tta_info tta; if (open_tta_file (fname, &tta, 0) != 0) { fprintf (stderr, "tta: failed to open %s\n", fname); @@ -213,7 +213,7 @@ tta_insert (DB_playItem_t *after, const char *fname) { const char *cuesheet = deadbeef->pl_find_meta (it, "cuesheet"); DB_playItem_t *cue = NULL; if (cuesheet) { - cue = deadbeef->pl_insert_cue_from_buffer (after, it, cuesheet, strlen (cuesheet), totalsamples, tta.SAMPLERATE); + cue = deadbeef->plt_insert_cue_from_buffer (plt, after, it, cuesheet, strlen (cuesheet), totalsamples, tta.SAMPLERATE); if (cue) { deadbeef->pl_item_unref (it); deadbeef->pl_item_unref (cue); @@ -235,7 +235,7 @@ tta_insert (DB_playItem_t *after, const char *fname) { snprintf (s, sizeof (s), "%d", tta.BITRATE); deadbeef->pl_add_meta (it, ":BITRATE", s); - cue = deadbeef->pl_insert_cue (after, it, totalsamples, tta.SAMPLERATE); + cue = deadbeef->plt_insert_cue (plt, after, it, totalsamples, tta.SAMPLERATE); if (cue) { deadbeef->pl_item_unref (it); deadbeef->pl_item_unref (cue); @@ -243,7 +243,7 @@ tta_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; |