mirror of
https://github.com/mpv-player/mpv
synced 2025-02-16 12:17:12 +00:00
demux_edl: accept protocol entries in EDL entries again
Accidentally broken by commit 99700bc52c1317. mp_path_join() does not check for this, because it's supposed to work on filesystem strings (and e.g. "http://fubar" is a valid relative path in UNIX).
This commit is contained in:
parent
96ef62161a
commit
64c4c59770
@ -458,7 +458,10 @@ static void fix_filenames(struct tl_parts *parts, char *source_path)
|
||||
struct bstr dirname = mp_dirname(source_path);
|
||||
for (int n = 0; n < parts->num_parts; n++) {
|
||||
struct tl_part *part = &parts->parts[n];
|
||||
part->filename = mp_path_join_bstr(parts, dirname, bstr0(part->filename));
|
||||
if (!mp_is_url(bstr0(part->filename))) {
|
||||
part->filename =
|
||||
mp_path_join_bstr(parts, dirname, bstr0(part->filename));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user