diff options
author | David Vaughan <david@davidv.xyz> | 2024-02-04 10:58:09 -0800 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2024-02-26 02:03:21 +0000 |
commit | da753196af6593b2d6e94f691c9d1287b3ea093b (patch) | |
tree | 9960a897291bd8cf3f812031db9e45295fe14c72 /options | |
parent | a8a314b829498c55aed393d4bc7f4f7bf9e92362 (diff) | |
download | mpv-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.c | 6 |
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 |