1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 01:22:30 +00:00

TOOLS/lua/autoload: pass extensions to recursive call

Closes #12400
This commit is contained in:
Christoph Heinrich 2023-09-15 22:45:41 +02:00 committed by Dudemanguy
parent 55a46214c4
commit 43e960e1f6

View File

@ -200,7 +200,7 @@ function scan_dir(path, current_file, dir_mode, separator, dir_depth, total_file
if dir_mode == "recursive" then
for _, dir in ipairs(dirs) do
scan_dir(prefix .. dir .. separator, current_file, dir_mode,
separator, dir_depth + 1, total_files)
separator, dir_depth + 1, total_files, extensions)
end
else
for i, dir in ipairs(dirs) do