[PATCH] qt: fix crash if no fullscreen controls are available

Hannes Domani ssbssa at yahoo.de
Wed Dec 27 14:08:39 CET 2017


---
 modules/gui/qt/main_interface.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt/main_interface.cpp b/modules/gui/qt/main_interface.cpp
index af624580e2..7ad3ffa015 100644
--- a/modules/gui/qt/main_interface.cpp
+++ b/modules/gui/qt/main_interface.cpp
@@ -870,7 +870,8 @@ void MainInterface::setVideoFullScreen( bool fs )
         if( numscreen < 0 || numscreen >= QApplication::desktop()->screenCount() )
             numscreen = QApplication::desktop()->screenNumber( p_intf->p_sys->p_mi );
 
-        fullscreenControls->setTargetScreen( numscreen );
+        if( fullscreenControls )
+            fullscreenControls->setTargetScreen( numscreen );
 
         if ( numscreen >= 0 )
         {
-- 
2.15.0



More information about the vlc-devel mailing list