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

Hugo Beauzée-Luyssen git at videolan.org
Thu Apr 5 10:26:01 CEST 2018


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

VLSub: Handle interface refresh when no video is loaded

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

 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 9b7f299f03..83a25d1efd 100644
--- a/share/lua/extensions/VLSub.lua
+++ b/share/lua/extensions/VLSub.lua
@@ -1451,12 +1451,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