[vlc-commits] VLSub: Display a user visible error when failing to generate the hash
    Hugo Beauzée-Luyssen 
    git at videolan.org
       
    Wed Apr 18 16:05:35 CEST 2018
    
    
  
vlc/vlc-3.0 | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Apr 18 15:59:51 2018 +0200| [48cbdb8d768cafb3356c9c7af3a4571472ad56d5] | committer: Hugo Beauzée-Luyssen
VLSub: Display a user visible error when failing to generate the hash
(cherry picked from commit 7e88d58196453b1c50e34fc8723b85ab211ee7f1)
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=48cbdb8d768cafb3356c9c7af3a4571472ad56d5
---
 share/lua/extensions/VLSub.lua | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/share/lua/extensions/VLSub.lua b/share/lua/extensions/VLSub.lua
index 6fc73e173e..a7bb4d851c 100644
--- a/share/lua/extensions/VLSub.lua
+++ b/share/lua/extensions/VLSub.lua
@@ -1307,10 +1307,12 @@ openSub = {
     data_start = file:read(chunk_size)
     if not size then
       vlc.msg.warn("[VLSub] Failed to get stream size")
+      setError(lang["mess_err_hash"])
       return false
     end
     if not file:seek( size - chunk_size ) then
       vlc.msg.warn("[VLSub] Failed to seek to the end of the stream")
+      setError(lang["mess_err_hash"])
       return false
     end
     data_end = file:read(chunk_size)
    
    
More information about the vlc-commits
mailing list