[vlc-commits] VLSub: Use vlc.io.unlink
Hugo Beauzée-Luyssen
git at videolan.org
Mon Apr 16 18:57:06 CEST 2018
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Apr 16 13:13:44 2018 +0200| [c4f22557807fa66702b22476f23dcb5c32b87a3a] | committer: Hugo Beauzée-Luyssen
VLSub: Use vlc.io.unlink
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c4f22557807fa66702b22476f23dcb5c32b87a3a
---
share/lua/extensions/VLSub.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/share/lua/extensions/VLSub.lua b/share/lua/extensions/VLSub.lua
index a11db3e911..c797dee934 100644
--- a/share/lua/extensions/VLSub.lua
+++ b/share/lua/extensions/VLSub.lua
@@ -1633,7 +1633,7 @@ function download_subtitles()
stream = nil
collectgarbage()
- if not os.remove(tmpFileName) then
+ if not vlc.io.unlink(tmpFileName) then
vlc.msg.err("[VLsub] Unable to remove temp: "..tmpFileName)
end
More information about the vlc-commits
mailing list