summaryrefslogtreecommitdiff
path: root/plugins/cdda
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-11-12 20:39:40 +0100
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-11-12 20:39:40 +0100
commit1fd10ce2366cc4a9366ddc430c832677a43684a7 (patch)
tree3b8fb38bc2e30c731605522fe12b5ab4b4d790ff /plugins/cdda
parentb7ea91dc15af4ab872cd16cc93b3d6da2a15b6f6 (diff)
cdda: fixed API usage bugs
Diffstat (limited to 'plugins/cdda')
-rw-r--r--plugins/cdda/cdda.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/cdda/cdda.c b/plugins/cdda/cdda.c
index c99fcfbb..6f4233b2 100644
--- a/plugins/cdda/cdda.c
+++ b/plugins/cdda/cdda.c
@@ -632,9 +632,9 @@ cda_action_add_cd (DB_plugin_action_t *act, int ctx)
{
ddb_playlist_t *plt = deadbeef->plt_get_curr ();
if (plt) {
- deadbeef->pl_add_files_begin (plt);
- deadbeef->plt_add_file (plt, "all.cda", NULL, NULL);
- deadbeef->pl_add_files_end ();
+ deadbeef->plt_add_files_begin (plt, 0);
+ deadbeef->plt_add_file2 (0, plt, "all.cda", NULL, NULL);
+ deadbeef->plt_add_files_end (plt, 0);
deadbeef->plt_modified (plt);
deadbeef->plt_unref (plt);
}
@@ -646,7 +646,7 @@ static DB_plugin_action_t add_cd_action = {
.name = "cd_add",
.title = "File/Add audio CD",
.flags = DB_ACTION_COMMON | DB_ACTION_ADD_MENU,
- .callback = cda_action_add_cd,
+ .callback2 = cda_action_add_cd,
.next = NULL
};