Revert "external_files: parse ~ in --{sub,audio}-paths"

The paths loaded here are already expanded so we can simplify.

This reverts commit 1a25f8c9fb.
This commit is contained in:
Dudemanguy
2025-07-22 17:52:41 +00:00
parent 5c4c067ee6
commit 768ad8f035
+2 -5
View File
@@ -247,13 +247,10 @@ static void load_paths(struct mpv_global *global, struct MPOpts *opts,
char **paths, char *cfg_path, int type)
{
for (int i = 0; paths && paths[i]; i++) {
char *expanded_path = mp_get_user_path(NULL, global, paths[i]);
char *path = mp_path_join_bstr(
*slist, mp_dirname(fname),
bstr0(expanded_path ? expanded_path : paths[i]));
char *path = mp_path_join_bstr(*slist, mp_dirname(fname),
bstr0(paths[i]));
append_dir_subtitles(global, opts, slist, nsubs, bstr0(path),
fname, 0, type);
talloc_free(expanded_path);
}
// Load subtitles in ~/.mpv/sub (or similar) limiting sub fuzziness