]> git.sesse.net Git - vlc/commitdiff
* Fixed a crash with blank opengl effect paramerter
authorDerk-Jan Hartman <hartman@videolan.org>
Tue, 16 Mar 2004 20:06:44 +0000 (20:06 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Tue, 16 Mar 2004 20:06:44 +0000 (20:06 +0000)
modules/gui/macosx/vout.m

index 12208fdc5bb641cdc2ce57b08d9fea047bb8eef3..35d4a830c3200bef5ed5904425019b793b71cffa 100644 (file)
@@ -1347,7 +1347,7 @@ static void QTFreePicture( vout_thread_t *p_vout, picture_t *p_pic )
 
     /* Check if the user asked for useless visual effects */
     psz_effect = config_GetPsz( p_vout, "macosx-opengl-effect" );
-    if( !strcmp( psz_effect, "none" ) )
+    if( !psz_effect || !strcmp( psz_effect, "none" ))
     {
         i_effect = OPENGL_EFFECT_NONE;
     }