mirror of
https://github.com/mpv-player/mpv
synced 2025-01-13 18:45:25 +00:00
external_files: actually try to autoload from fallback paths
The 'sub' and 'audio' configuration subdirectories are supposed to be fallbacks for sub-paths and audio-file-paths respectively, but they weren't being scanned even if they existed.
This commit is contained in:
parent
16ff72cc14
commit
5f0c7df598
@ -270,12 +270,12 @@ struct subfn *find_external_files(struct mpv_global *global, const char *fname)
|
||||
|
||||
// Load subtitles in dirs specified by sub-paths option
|
||||
if (opts->sub_auto >= 0) {
|
||||
load_paths(global, &slist, &n, fname, opts->sub_paths, "sub/",
|
||||
load_paths(global, &slist, &n, fname, opts->sub_paths, "sub",
|
||||
STREAM_SUB);
|
||||
}
|
||||
|
||||
if (opts->audiofile_auto >= 0) {
|
||||
load_paths(global, &slist, &n, fname, opts->audiofile_paths, "audio/",
|
||||
load_paths(global, &slist, &n, fname, opts->audiofile_paths, "audio",
|
||||
STREAM_AUDIO);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user