From: Jean-Baptiste Kempf Date: Thu, 17 Apr 2014 20:40:39 +0000 (+0200) Subject: LuaHTTP: do not fail when requesting command=fullscreen X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=8f2fde3cdd82b5d7e814cf628b6ea00cf85a8e1a;p=vlc LuaHTTP: do not fail when requesting command=fullscreen If no input or no vout, it failed. Close #11211 --- diff --git a/share/lua/intf/modules/httprequests.lua b/share/lua/intf/modules/httprequests.lua index fe93ef4cfa..f16e205740 100644 --- a/share/lua/intf/modules/httprequests.lua +++ b/share/lua/intf/modules/httprequests.lua @@ -149,7 +149,9 @@ processcommands = function () vlc.sd.add(val) end elseif command == "fullscreen" then - vlc.video.fullscreen() + if vlc.object.vout() then + vlc.video.fullscreen() + end elseif command == "snapshot" then common.snapshot() elseif command == "volume" then