From 5f0c7df598602fc779b255a6c29297b4df2b6cf1 Mon Sep 17 00:00:00 2001 From: Ricardo Constantino Date: Fri, 31 Mar 2017 19:21:02 +0100 Subject: 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. --- player/external_files.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'player') 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); } -- cgit v1.2.3