[vlc-devel] commit: Fix a crash if BEST_AUTOCROP isn't defined (non initialized mutex). ( Rémi Duraffort )
git version control
git at videolan.org
Tue Jun 30 10:12:51 CEST 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Jun 29 16:24:13 2009 +0200| [a8e1052c918c7c0ce7a4520ea5b91b4e464867ae] | committer: Rémi Duraffort
Fix a crash if BEST_AUTOCROP isn't defined (non initialized mutex).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a8e1052c918c7c0ce7a4520ea5b91b4e464867ae
---
modules/video_filter/crop.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/video_filter/crop.c b/modules/video_filter/crop.c
index 088ca46..5b44bb0 100644
--- a/modules/video_filter/crop.c
+++ b/modules/video_filter/crop.c
@@ -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
More information about the vlc-devel
mailing list