[vlc-devel] commit: Fix a probable crash when fullscreen controllers are disabled. ( Jean-Baptiste Kempf )

git version control git at videolan.org
Tue Aug 19 01:56:28 CEST 2008


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Aug 18 16:58:33 2008 -0700| [6d6d311841affa25cc06dcdb89fa74f896193941] | committer: Jean-Baptiste Kempf 

Fix a probable crash when fullscreen controllers are disabled.

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

 modules/gui/qt4/main_interface.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index f96deb8..ba56fec 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -829,7 +829,7 @@ void MainInterface::doComponentsUpdate()
 void MainInterface::toggleAdvanced()
 {
     controls->toggleAdvanced();
-    fullscreenControls->toggleAdvanced();
+    if( fullscreenControls ) fullscreenControls->toggleAdvanced();
 }
 
 /* Get the visibility status of the controls (hidden or not, advanced or not) */




More information about the vlc-devel mailing list