From 20627955d1184b5f07b8f7910a59f15cdc4802c8 Mon Sep 17 00:00:00 2001 From: waker Date: Fri, 29 Apr 2011 22:38:31 +0200 Subject: changed some API entry points to make it possible working with specific playlists, and not just the current one --- plugins/dumb/cdumb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/dumb') diff --git a/plugins/dumb/cdumb.c b/plugins/dumb/cdumb.c index 03c9db94..dae92e77 100644 --- a/plugins/dumb/cdumb.c +++ b/plugins/dumb/cdumb.c @@ -791,7 +791,7 @@ cdumb_read_metadata (DB_playItem_t *it) { } static DB_playItem_t * -cdumb_insert (DB_playItem_t *after, const char *fname) { +cdumb_insert (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname) { const char *ext = strrchr (fname, '.'); if (ext) { ext++; @@ -816,7 +816,7 @@ cdumb_insert (DB_playItem_t *after, const char *fname) { deadbeef->pl_set_item_duration (it, duh_get_length (duh)/65536.0f); deadbeef->pl_add_meta (it, ":FILETYPE", ftype); // printf ("duration: %f\n", _info->duration); - after = deadbeef->pl_insert_item (after, it); + after = deadbeef->plt_insert_item (plt, after, it); deadbeef->pl_item_unref (it); unload_duh (duh); -- cgit v1.2.3