summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorRicardo Constantino <wiiaboo@gmail.com>2017-03-31 19:21:02 +0100
committerRicardo Constantino <wiiaboo@gmail.com>2017-04-01 15:42:39 +0100
commit5f0c7df598602fc779b255a6c29297b4df2b6cf1 (patch)
treee07b6acac0c2e9722ddeb8f33f777cc0e1d12169 /player
parent16ff72cc14dc8ca0fc44083dbf967e7366d6c185 (diff)
downloadmpv-5f0c7df598602fc779b255a6c29297b4df2b6cf1.tar.bz2
mpv-5f0c7df598602fc779b255a6c29297b4df2b6cf1.tar.xz
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.
Diffstat (limited to 'player')
-rw-r--r--player/external_files.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/player/external_files.c b/player/external_files.c
index 5eb3a1d730..baa59e9c39 100644
--- a/player/external_files.c
+++ b/player/external_files.c
@@ -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);
}