summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorDavid Vaughan <david@davidv.xyz>2024-02-04 10:58:09 -0800
committerDudemanguy <random342@airmail.cc>2024-02-26 02:03:21 +0000
commitda753196af6593b2d6e94f691c9d1287b3ea093b (patch)
tree9960a897291bd8cf3f812031db9e45295fe14c72 /options
parenta8a314b829498c55aed393d4bc7f4f7bf9e92362 (diff)
downloadmpv-da753196af6593b2d6e94f691c9d1287b3ea093b.tar.bz2
mpv-da753196af6593b2d6e94f691c9d1287b3ea093b.tar.xz
player: change insert_next to insert_at
Change the `playlist_insert_next` function to `playlist_insert_at` (ie, insert at the location of an entry, rather than after it, and rename to be clearer that it doesn't have anything to do with the currently-playing entry). Also, replace calls to `playlist_add` with calls to `playlist_insert_at`, since the former has become redundant.
Diffstat (limited to 'options')
-rw-r--r--options/parse_commandline.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/options/parse_commandline.c b/options/parse_commandline.c
index ad91b8d61a..ded8531da8 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