[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:38:41 CEST 2008


vlc | branch: 0.9-bugfix | Jean-Baptiste Kempf <jb at videolan.org> | Tue Oct 21 09:35:44 2008 +0200| [5ecfecb810a19fc1f7acc7a6b9e71ac994cd7df5] | committer: Jean-Baptiste Kempf 

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

Close #2194
(cherry picked from commit 79579afe7f4dd0e87162828fe47a305d679d1bf7)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 f152542..ab1a1e8 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -787,7 +787,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