1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-23 23:32:26 +00:00

autoload.lua: fix autoloading of files to prepend

This used the wrong index variable, and thus didn't work.
This commit is contained in:
wm4 2014-05-25 20:17:03 +02:00
parent 2309bb91cc
commit 0e1ab2a8da

View File

@ -52,7 +52,7 @@ function find_and_add_entries()
end
end
if dir == -1 then
if current == 1 then -- never add additional entries in the middle
if pl_current == 1 then -- never add additional entries in the middle
mp.msg.info("Prepending " .. file)
table.insert(append[-1], 1, file)
end