summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-05-10 21:34:49 +0200
committerGravatar waker <wakeroid@gmail.com>2011-05-10 21:34:49 +0200
commit9d529eb05995069583ffa3e07670c0ea23b42b15 (patch)
tree055c27ab1954e8a8493a519bc5de9d27807293a9 /main.c
parent1a8737e1466a3c17d77ab30e2035472feb7c2773 (diff)
added several new plt_* functions to work on specific playlists
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index c671a58f..80e07b27 100644
--- a/main.c
+++ b/main.c
@@ -245,9 +245,9 @@ server_exec_command_line (const char *cmdline, int len, char *sendback, int sbsi
// add files
playlist_t *curr_plt = plt_get_curr ();
if (!queue) {
- pl_clear ();
+ plt_clear (curr_plt);
messagepump_push (DB_EV_PLAYLISTCHANGED, 0, 0, 0);
- pl_reset_cursor ();
+ plt_reset_cursor (curr_plt);
}
if (parg < pend) {
if (deadbeef->pl_add_files_begin ((ddb_playlist_t *)curr_plt) != 0) {