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/ao/plugin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/ao') diff --git a/plugins/ao/plugin.c b/plugins/ao/plugin.c index 6b489f45..8d5e6acb 100644 --- a/plugins/ao/plugin.c +++ b/plugins/ao/plugin.c @@ -205,7 +205,7 @@ aoplug_add_meta (DB_playItem_t *it, const char *key, const char *value, const ch } static DB_playItem_t * -aoplug_insert (DB_playItem_t *after, const char *fname) { +aoplug_insert (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname) { DB_FILE *fp = deadbeef->fopen (fname); if (!fp) { trace ("psf: failed to fopen %s\n", fname); @@ -327,7 +327,7 @@ aoplug_insert (DB_playItem_t *after, const char *fname) { } deadbeef->pl_set_item_duration (it, duration+fade); 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; } -- cgit v1.2.3