mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-31 03:27:40 +01:00
Remove deprecated use of static mutex in moodbar.
This commit is contained in:
parent
ff371a6769
commit
7652e2f780
@ -221,6 +221,8 @@ gst_fftwspectrum_init (GstFFTWSpectrum * conv,
|
||||
conv->def_size = DEF_SIZE_DEFAULT;
|
||||
conv->def_step = DEF_STEP_DEFAULT;
|
||||
conv->hi_q = HIQUALITY_DEFAULT;
|
||||
|
||||
g_mutex_init(&conv->mutex);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -303,13 +305,12 @@ alloc_fftw_data (GstFFTWSpectrum *conv)
|
||||
* implementing filters.
|
||||
*/
|
||||
|
||||
static GStaticMutex mutex = G_STATIC_MUTEX_INIT;
|
||||
g_static_mutex_lock(&mutex);
|
||||
g_mutex_lock(&conv->mutex);
|
||||
conv->fftw_plan
|
||||
= fftw_plan_dft_r2c_1d(conv->size, conv->fftw_in,
|
||||
(fftw_complex *) conv->fftw_out,
|
||||
conv->hi_q ? FFTW_MEASURE : FFTW_ESTIMATE);
|
||||
g_static_mutex_unlock(&mutex);
|
||||
g_mutex_unlock(&conv->mutex);
|
||||
}
|
||||
|
||||
|
||||
|
@ -54,6 +54,8 @@ struct _GstFFTWSpectrum
|
||||
/* Properties */
|
||||
gint32 def_size, def_step;
|
||||
gboolean hi_q;
|
||||
|
||||
GMutex mutex;
|
||||
};
|
||||
|
||||
struct _GstFFTWSpectrumClass
|
||||
|
Loading…
x
Reference in New Issue
Block a user