[vlc-devel] commit: Qt4: fix a rare crash... (Jean-Baptiste Kempf )
    git version control 
    git at videolan.org
       
    Fri Apr 24 23:55:20 CEST 2009
    
    
  
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Apr 24 23:53:08 2009 +0200| [10ce85d6373a27883e7674dd7cb5924e08eb2bab] | committer: Jean-Baptiste Kempf 
Qt4: fix a rare crash...
To crash it:
- Uncheck preference all->Video->Embedded video
- save and exit vlc.
- open VLC
- Open a video file with vlc, turn on visualization.
- ReCheck preferences all->Video->Embedded video and save preferences.
- Press "N" at the keyboard
Close #2486.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=10ce85d6373a27883e7674dd7cb5924e08eb2bab
---
 modules/gui/qt4/main_interface.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index e48af0d..f268f1a 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -704,6 +704,7 @@ WId MainInterface::requestVideo( vout_thread_t *p_nvout, int *pi_x,
                                  unsigned int *pi_height )
 {
     /* Request the videoWidget */
+    if( !videoWidget ) return 0;
     WId ret = videoWidget->request( p_nvout,pi_x, pi_y,
                                     pi_width, pi_height, b_keep_size );
     if( ret ) /* The videoWidget is available */
    
    
More information about the vlc-devel
mailing list