From 34b6056ac873388ce008817819cefe930ee9901f Mon Sep 17 00:00:00 2001 From: Kazunori Kobayashi Date: Wed, 31 Oct 2012 12:33:58 +0900 Subject: [PATCH 30/31] videocrop: hold a lock to prevent from accessing cropping params on performing set_property --- gst/videocrop/gstvideocrop.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/videocrop/gstvideocrop.c b/gst/videocrop/gstvideocrop.c index 8fcc80e..2114dae 100644 --- a/gst/videocrop/gstvideocrop.c +++ b/gst/videocrop/gstvideocrop.c @@ -956,10 +956,12 @@ gst_videocrop_transform_size (GstBaseTransform * trans, guint sub_offset; GstVideoCropRectangle rounded_rect; + GST_OBJECT_LOCK (vcrop); rounded_rect.top = vcrop->crop_top; rounded_rect.bottom = vcrop->crop_bottom; rounded_rect.left = vcrop->crop_left; rounded_rect.right = vcrop->crop_right; + GST_OBJECT_UNLOCK (vcrop); gst_video_crop_round_down_crop_properties (vcrop, caps, &rounded_rect); /* Calculate a subbufer size for zero-copy cropping. The subbuffer is -- 1.7.9.5