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:
Ricardo Constantino 2017-03-31 19:21:02 +01:00
parent 16ff72cc14
commit 5f0c7df598
No known key found for this signature in database
GPG Key ID: EFD16019AE4FF531
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}