From 1fd10ce2366cc4a9366ddc430c832677a43684a7 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Tue, 12 Nov 2013 20:39:40 +0100 Subject: cdda: fixed API usage bugs --- plugins/cdda/cdda.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/cdda') 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 }; -- cgit v1.2.3