From 4b227159cba3b5953d85dd5358cefece06e5d35f Mon Sep 17 00:00:00 2001 From: Sebastian Dröge Date: Tue, 13 Jan 2009 08:24:25 +0000 Subject: gst/audiofx/: Use a custom mutex for protecting the instance fields instead of the GstObject lock. Using the latter c... Original commit message from CVS: * gst/audiofx/audiochebband.c: (gst_audio_cheb_band_class_init), (gst_audio_cheb_band_init), (gst_audio_cheb_band_finalize), (gst_audio_cheb_band_set_property): * gst/audiofx/audiochebband.h: * gst/audiofx/audiocheblimit.c: (gst_audio_cheb_limit_class_init), (gst_audio_cheb_limit_init), (gst_audio_cheb_limit_finalize), (gst_audio_cheb_limit_set_property): * gst/audiofx/audiocheblimit.h: * gst/audiofx/audiowsincband.c: (gst_audio_wsincband_class_init), (gst_audio_wsincband_init), (gst_audio_wsincband_finalize), (gst_audio_wsincband_set_property): * gst/audiofx/audiowsincband.h: * gst/audiofx/audiowsinclimit.c: (gst_audio_wsinclimit_class_init), (gst_audio_wsinclimit_init), (gst_audio_wsinclimit_finalize), (gst_audio_wsinclimit_set_property): * gst/audiofx/audiowsinclimit.h: Use a custom mutex for protecting the instance fields instead of the GstObject lock. Using the latter can lead to deadlocks, especially with the FIR filters when updating the latency. --- gst/audiofx/audiowsinclimit.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gst/audiofx/audiowsinclimit.h') diff --git a/gst/audiofx/audiowsinclimit.h b/gst/audiofx/audiowsinclimit.h index d30b3938..1a67169e 100644 --- a/gst/audiofx/audiowsinclimit.h +++ b/gst/audiofx/audiowsinclimit.h @@ -60,11 +60,13 @@ typedef struct _GstAudioWSincLimitClass GstAudioWSincLimitClass; struct _GstAudioWSincLimit { GstAudioFXBaseFIRFilter parent; - /* < private > */ gint mode; gint window; gfloat cutoff; gint kernel_length; + + /* < private > */ + GMutex *lock; }; struct _GstAudioWSincLimitClass { -- cgit