Commit 446a5442 authored by Rémi Duraffort's avatar Rémi Duraffort

Fix a crash if BEST_AUTOCROP isn't defined (non initialized mutex).

(cherry picked from commit a8e1052c)
Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent 1a617fb6
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment