videobalance: avoid deadlock

_update_properties takes the object lock and should not be called when the
object lock is already taken.
This commit is contained in:
Wim Taymans 2012-09-04 12:35:53 +02:00
parent aeba106878
commit 6693a22875

View file

@ -601,10 +601,10 @@ gst_video_balance_colorbalance_set_value (GstColorBalance * balance,
changed = new_val != vb->contrast;
vb->contrast = new_val;
}
GST_OBJECT_UNLOCK (vb);
if (changed)
gst_video_balance_update_properties (vb);
GST_OBJECT_UNLOCK (vb);
if (changed) {
gst_color_balance_value_changed (balance, channel,