vlc | branch: master | Hugo Beauzée-Luyssen <h...@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
 

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to