[vlc-devel] commit: [Qt] Fix a crash when toggling minimalView when --no-embedded-video . (Jean-Baptiste Kempf )

git version control git at videolan.org
Tue Oct 21 09:36:48 CEST 2008


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Oct 21 09:35:44 2008 +0200| [79579afe7f4dd0e87162828fe47a305d679d1bf7] | committer: Jean-Baptiste Kempf 

[Qt] Fix a crash when toggling minimalView when --no-embedded-video.

Close #2194

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

 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 9915cdf..1ce149e 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -774,7 +774,7 @@ void MainInterface::toggleMinimalView()
     if( i_visualmode != QT_ALWAYS_VIDEO_MODE &&
         i_visualmode != QT_MINIMAL_MODE )
     { /* NORMAL MODE then */
-        if( videoWidget->isHidden() ) emit askBgWidgetToToggle();
+        if( !videoWidget || videoWidget->isHidden() ) emit askBgWidgetToToggle();
         else
         {
             /* If video is visible, then toggle the status of bgWidget */




More information about the vlc-devel mailing list