blob: 51141745431a12382ad1ed3f7d6d76c250dea62e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
From 34b6056ac873388ce008817819cefe930ee9901f Mon Sep 17 00:00:00 2001
From: Kazunori Kobayashi <kkobayas@igel.co.jp>
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
|