diff options
-rw-r--r-- | plugins/cdda/cdda.c | 8 |
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 }; |