diff options
author | waker <wakeroid@gmail.com> | 2011-05-08 21:14:30 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-05-08 21:14:30 +0200 |
commit | 3ec7a3d62a7383f19d4d4ee68ea9f0c66c9fe970 (patch) | |
tree | e7f95127ad480f446c10c81ffe220e581622e8e2 /main.c | |
parent | b5ffaa4ae71ce0520d55b99e0501b92c031e860e (diff) |
changed few old-style pl_* functions which were working with current playlist with the new ones, working with specific playlist passed as argument
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -264,8 +264,8 @@ server_exec_command_line (const char *cmdline, int len, char *sendback, int sbsi else { pname = parg; } - if (deadbeef->pl_add_dir (pname, NULL, NULL) < 0) { - if (deadbeef->pl_add_file (pname, NULL, NULL) < 0) { + if (deadbeef->plt_add_dir ((ddb_playlist_t*)curr_plt, pname, NULL, NULL) < 0) { + if (deadbeef->plt_add_file ((ddb_playlist_t*)curr_plt, pname, NULL, NULL) < 0) { fprintf (stderr, "failed to add file or folder %s\n", pname); } } @@ -273,6 +273,7 @@ server_exec_command_line (const char *cmdline, int len, char *sendback, int sbsi parg++; } deadbeef->pl_add_files_end (); + plt_unref (curr_plt); } messagepump_push (DB_EV_PLAYLIST_REFRESH, 0, 0, 0); if (!queue) { |