]> git.sesse.net Git - vlc/commitdiff
Qt4: fix a rare crash...
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 24 Apr 2009 21:53:08 +0000 (23:53 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 24 Apr 2009 21:55:04 +0000 (23:55 +0200)
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.

modules/gui/qt4/main_interface.cpp

index e48af0d0d74796e98ccefbb73c4aca99417a2e8d..f268f1a3cac49b1f9885c95728594cc6ac728e34 100644 (file)
@@ -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 */