[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:23:36 CEST 2009
vlc | branch: 1.0-bugfix | Rémi Duraffort <ivoire at videolan.org> | Mon Jun 29 16:24:13 2009 +0200| [446a544275e77bc7c328e4da05fa14cf364232a3] | committer: Rémi Duraffort
Fix a crash if BEST_AUTOCROP isn't defined (non initialized mutex).
(cherry picked from commit a8e1052c918c7c0ce7a4520ea5b91b4e464867ae)
Signed-off-by: Rémi Duraffort <ivoire at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=446a544275e77bc7c328e4da05fa14cf364232a3
---
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 91112d6..d8a258a 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