[vlc-commits] VLSub: Use vlc.io.unlink

Hugo Beauzée-Luyssen git at videolan.org
Tue Apr 17 14:02:15 CEST 2018


vlc/vlc-3.0 | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Apr 16 13:13:44 2018 +0200| [3ad58da404cb0c8bc435cbc73adbc91027388158] | committer: Hugo Beauzée-Luyssen

VLSub: Use vlc.io.unlink

(cherry picked from commit c4f22557807fa66702b22476f23dcb5c32b87a3a)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=3ad58da404cb0c8bc435cbc73adbc91027388158
---

 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