[vlc-commits] LuaHTTP: do not fail when requesting command=fullscreen

Jean-Baptiste Kempf git at videolan.org
Thu Apr 17 22:42:03 CEST 2014


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Apr 17 22:40:39 2014 +0200| [8f2fde3cdd82b5d7e814cf628b6ea00cf85a8e1a] | committer: Jean-Baptiste Kempf

LuaHTTP: do not fail when requesting command=fullscreen

If no input or no vout, it failed.

Close #11211

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

 share/lua/intf/modules/httprequests.lua |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/share/lua/intf/modules/httprequests.lua b/share/lua/intf/modules/httprequests.lua
index fe93ef4..f16e205 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



More information about the vlc-commits mailing list