summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorMike Sheldon <mike@mikeasoft.com>2010-02-28 14:36:35 +0000
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>2010-09-08 17:15:48 -0300
commit96a769dc284ed8f71630a11ca1075b6708881e7c (patch)
tree05647e23e7a38b5016ec1ad9aa961b03905a99fa /ext
parentfa8210fe94b83bb9db0e7934b60160f846c713a1 (diff)
downloadgstreamer-plugins-bad-96a769dc284ed8f71630a11ca1075b6708881e7c.tar.gz
Apply Stefan's faceblur fixes to facedetect
Diffstat (limited to 'ext')
-rw-r--r--ext/opencv/facedetect/gstfacedetect.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/opencv/facedetect/gstfacedetect.c b/ext/opencv/facedetect/gstfacedetect.c
index 70e717f67..0928b4544 100644
--- a/ext/opencv/facedetect/gstfacedetect.c
+++ b/ext/opencv/facedetect/gstfacedetect.c
@@ -120,6 +120,8 @@ gst_facedetect_finalize (GObject * obj)
cvReleaseImage (&filter->cvGray);
}
+ g_free (filter->profile);
+
G_OBJECT_CLASS (parent_class)->finalize (obj);
}
@@ -189,7 +191,7 @@ gst_facedetect_init (Gstfacedetect * filter, GstfacedetectClass * gclass)
gst_element_add_pad (GST_ELEMENT (filter), filter->sinkpad);
gst_element_add_pad (GST_ELEMENT (filter), filter->srcpad);
- filter->profile = DEFAULT_PROFILE;
+ filter->profile = g_strdup(DEFAULT_PROFILE);
filter->display = TRUE;
gst_facedetect_load_profile (filter);
}
@@ -202,6 +204,7 @@ gst_facedetect_set_property (GObject * object, guint prop_id,
switch (prop_id) {
case PROP_PROFILE:
+ g_free (filter->profile);
filter->profile = g_value_dup_string (value);
gst_facedetect_load_profile (filter);
break;
@@ -222,7 +225,7 @@ gst_facedetect_get_property (GObject * object, guint prop_id,
switch (prop_id) {
case PROP_PROFILE:
- g_value_take_string (value, filter->profile);
+ g_value_set_string (value, filter->profile);
break;
case PROP_DISPLAY:
g_value_set_boolean (value, filter->display);