summaryrefslogtreecommitdiff
path: root/plugins/m3u
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-11-05 21:14:02 +0100
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-11-05 21:14:02 +0100
commita71f900485c1ddf54f89899caf3da478f1bc2e74 (patch)
tree9db65f5d4450bf84e2f56f5b468963a036ccb431 /plugins/m3u
parentb7d8d6391671de69e811f54caa34ca15e9b0b4dd (diff)
m3u: ported to new addfile API
Diffstat (limited to 'plugins/m3u')
-rw-r--r--plugins/m3u/m3u.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/m3u/m3u.c b/plugins/m3u/m3u.c
index 1556aeb9..703c7486 100644
--- a/plugins/m3u/m3u.c
+++ b/plugins/m3u/m3u.c
@@ -187,7 +187,7 @@ load_m3u (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname, int *pab
}
if (is_fullpath) { // full path
trace ("pl_insert_m3u: adding file %s\n", nm);
- it = deadbeef->plt_insert_file (plt, after, nm, pabort, cb, user_data);
+ it = deadbeef->plt_insert_file2 (0, plt, after, nm, pabort, cb, user_data);
if (it) {
if (length >= 0 && deadbeef->pl_get_item_duration (it) < 0) {
deadbeef->plt_set_item_duration (plt, it, length);
@@ -206,7 +206,7 @@ load_m3u (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname, int *pab
memcpy (fullpath, fname, slash - fname + 1);
strcpy (fullpath + (slash - fname + 1), nm);
trace ("pl_insert_m3u: adding file %s\n", fullpath);
- it = deadbeef->plt_insert_file (plt, after, fullpath, pabort, cb, user_data);
+ it = deadbeef->plt_insert_file2 (0, plt, after, fullpath, pabort, cb, user_data);
}
if (it) {
after = it;
@@ -238,7 +238,7 @@ pls_insert_file (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname, c
const char *slash = NULL;
if (strrchr (uri, '/')) {
- it = deadbeef->plt_insert_file (plt, after, uri, pabort, cb, user_data);
+ it = deadbeef->plt_insert_file2 (0, plt, after, uri, pabort, cb, user_data);
}
else if (slash = strrchr (fname, '/')) {
int l = strlen (uri);
@@ -246,7 +246,7 @@ pls_insert_file (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname, c
memcpy (fullpath, fname, slash - fname + 1);
strcpy (fullpath + (slash - fname + 1), uri);
trace ("pls_insert_file: adding file %s\n", fullpath);
- it = deadbeef->plt_insert_file (plt, after, fullpath, pabort, cb, user_data);
+ it = deadbeef->plt_insert_file2 (0, plt, after, fullpath, pabort, cb, user_data);
}
if (it) {
if (length[0]) {