[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:02:04 CEST 2018


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Apr 18 15:59:51 2018 +0200| [7e88d58196453b1c50e34fc8723b85ab211ee7f1] | committer: Hugo Beauzée-Luyssen

VLSub: Display a user visible error when failing to generate the hash

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7e88d58196453b1c50e34fc8723b85ab211ee7f1
---

 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