[vlc-commits] VLSub: Handle interface refresh when no video is loaded

Hugo Beauzée-Luyssen git at videolan.org
Thu Apr 12 13:01:02 CEST 2018


vlc/vlc-3.0 | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Apr  3 13:52:04 2018 +0200| [437f68e54cd047c3b849e4d1c81de4f86cadb0bd] | committer: Hugo Beauzée-Luyssen

VLSub: Handle interface refresh when no video is loaded

(cherry picked from commit 138ea1946a4d2d2ee469c8a4c29cc5831f724336)
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=437f68e54cd047c3b849e4d1c81de4f86cadb0bd
---

 share/lua/extensions/VLSub.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/share/lua/extensions/VLSub.lua b/share/lua/extensions/VLSub.lua
index 6ef051c40b..67719df520 100644
--- a/share/lua/extensions/VLSub.lua
+++ b/share/lua/extensions/VLSub.lua
@@ -1444,12 +1444,12 @@ openSub = {
     end
 
     local showName, seasonNumber, episodeNumber = string.match(
-      openSub.file.cleanName,
+      openSub.file.cleanName or "",
       "(.+)[sS](%d%d)[eE](%d%d).*")
 
     if not showName then
       showName, seasonNumber, episodeNumber = string.match(
-      openSub.file.cleanName,
+      openSub.file.cleanName or "",
       "(.+)(%d)[xX](%d%d).*")
     end
 



More information about the vlc-commits mailing list