summaryrefslogtreecommitdiffstats
path: root/options/parse_commandline.c
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-12-12 10:21:43 -0600
committerDudemanguy <random342@airmail.cc>2023-12-13 15:25:14 +0000
commit6d1383383b29c8968a7df02d3be808795b1f10d3 (patch)
treea6294431172d5f6dcb702c18ba1c13be373236f2 /options/parse_commandline.c
parent9b001b448ce6eb622b3111f307e6894a5eff73ea (diff)
downloadmpv-6d1383383b29c8968a7df02d3be808795b1f10d3.tar.bz2
mpv-6d1383383b29c8968a7df02d3be808795b1f10d3.tar.xz
playlist: correctly populate playlist-path with the --playlist option
When using the --playlist option on the commandline, it would mark all entries on the command as having the playlist-path of the value of that passed option, not just the ones that were expanded from it. Fix this by moving the playlist_populate_playlist_path to the same place where the playlist file gets expanded. Ref https://github.com/mpv-player/mpv/issues/13075#issuecomment-1852179164
Diffstat (limited to 'options/parse_commandline.c')
-rw-r--r--options/parse_commandline.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/options/parse_commandline.c b/options/parse_commandline.c
index 93120d3ad3..ad91b8d61a 100644
--- a/options/parse_commandline.c
+++ b/options/parse_commandline.c
@@ -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;