summaryrefslogtreecommitdiffstats
path: root/options/parse_commandline.c
diff options
context:
space:
mode:
Diffstat (limited to 'options/parse_commandline.c')
-rw-r--r--options/parse_commandline.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/options/parse_commandline.c b/options/parse_commandline.c
index 93120d3..ded8531 100644
--- a/options/parse_commandline.c
+++ b/options/parse_commandline.c
@@ -103,10 +103,10 @@ static void process_non_option(struct playlist *files, const char *arg)
// Glob filenames on Windows (cmd.exe doesn't do this automatically)
if (glob(arg, 0, NULL, &gg)) {
- playlist_add_file(files, arg);
+ playlist_append_file(files, arg);
} else {
for (int i = 0; i < gg.gl_pathc; i++)
- playlist_add_file(files, gg.gl_pathv[i]);
+ playlist_append_file(files, gg.gl_pathv[i]);
globfree(&gg);
}
@@ -114,7 +114,7 @@ static void process_non_option(struct playlist *files, const char *arg)
#else
static void process_non_option(struct playlist *files, const char *arg)
{
- playlist_add_file(files, arg);
+ playlist_append_file(files, arg);
}
#endif
@@ -201,7 +201,6 @@ int m_config_parse_mp_command_line(m_config_t *config, struct playlist *files,
goto err_out;
}
playlist_transfer_entries(files, pl);
- playlist_populate_playlist_path(files, param0);
talloc_free(param0);
talloc_free(pl);
continue;