Fix a crash if BEST_AUTOCROP isn't defined (non initialized mutex).
authorRémi Duraffort <ivoire@videolan.org>
Mon, 29 Jun 2009 14:24:13 +0000 (16:24 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Tue, 30 Jun 2009 06:44:05 +0000 (08:44 +0200)
modules/video_filter/crop.c

index 088ca46..5b44bb0 100644 (file)
@@ -376,8 +376,8 @@ static int Init( vout_thread_t *p_vout )
         return VLC_EGENERIC;
     }
 
-#ifdef BEST_AUTOCROP
     vlc_mutex_init( &p_vout->p_sys->lock );
+#ifdef BEST_AUTOCROP
     var_AddCallback( p_vout, "ratio-crop", FilterCallback, NULL );
 #endif