[vlc-commits] qt: fix crash if no fullscreen controls are available
Hannes Domani
git at videolan.org
Wed Dec 27 14:15:18 CET 2017
vlc | branch: master | Hannes Domani <ssbssa at yahoo.de> | Wed Dec 27 14:08:39 2017 +0100| [e472717ea5ba8b210d968ccebcdb2b9d670c8410] | committer: Jean-Baptiste Kempf
qt: fix crash if no fullscreen controls are available
Close #19349
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e472717ea5ba8b210d968ccebcdb2b9d670c8410
---
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 )
{
More information about the vlc-commits
mailing list