From c3e94d1c0890f5dcc139d29692bb588ae6f5d48e Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Wed, 19 Oct 2011 14:12:01 +0100 Subject: [PATCH] playsink: lock the new {set,get}_property functions https://bugzilla.gnome.org/show_bug.cgi?id=661262 --- gst/playback/gstplaysinkaudioconvert.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst/playback/gstplaysinkaudioconvert.c b/gst/playback/gstplaysinkaudioconvert.c index acfd6eff61..44572b4869 100644 --- a/gst/playback/gstplaysinkaudioconvert.c +++ b/gst/playback/gstplaysinkaudioconvert.c @@ -109,6 +109,7 @@ gst_play_sink_audio_convert_set_property (GObject * object, guint prop_id, GstPlaySinkAudioConvert *self = GST_PLAY_SINK_AUDIO_CONVERT_CAST (object); gboolean v, changed = FALSE; + GST_PLAY_SINK_CONVERT_BIN_LOCK (self); switch (prop_id) { case PROP_USE_CONVERTERS: v = g_value_get_boolean (value); @@ -135,6 +136,7 @@ gst_play_sink_audio_convert_set_property (GObject * object, guint prop_id, gst_play_sink_audio_convert_add_conversion_elements (self); gst_play_sink_convert_bin_cache_converter_caps (cbin); } + GST_PLAY_SINK_CONVERT_BIN_UNLOCK (self); } static void @@ -143,6 +145,7 @@ gst_play_sink_audio_convert_get_property (GObject * object, guint prop_id, { GstPlaySinkAudioConvert *self = GST_PLAY_SINK_AUDIO_CONVERT_CAST (object); + GST_PLAY_SINK_CONVERT_BIN_LOCK (self); switch (prop_id) { case PROP_USE_CONVERTERS: g_value_set_boolean (value, self->use_converters); @@ -153,6 +156,7 @@ gst_play_sink_audio_convert_get_property (GObject * object, guint prop_id, default: break; } + GST_PLAY_SINK_CONVERT_BIN_UNLOCK (self); } static void