--- gstfacedetect.c 2010-01-11 10:03:21.000000000 -0200 +++ gstfacedetect.c.new 2010-01-11 09:59:32.000000000 -0200 @@ -150,8 +150,8 @@ gst_facedetect_class_init (Gstfacedetect g_param_spec_boolean ("display", "Display", "Sets whether the detected faces should be highlighted in the output", TRUE, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_PROFILE, - g_param_spec_char ("profile", "Profile", "Location of Haar cascade file to use for face detection", - G_MININT8, G_MAXINT8, DEFAULT_PROFILE, G_PARAM_READWRITE)); + g_param_spec_string ("profile", "Profile", "Location of Haar cascade file to use for face detection", + DEFAULT_PROFILE, G_PARAM_READWRITE)); } /* initialize the new element @@ -190,7 +190,7 @@ gst_facedetect_set_property (GObject * o switch (prop_id) { case PROP_PROFILE: - filter->profile = g_value_get_char (value); + filter->profile = g_value_get_string (value); gst_facedetect_load_profile(filter); break; case PROP_DISPLAY: @@ -210,7 +210,7 @@ gst_facedetect_get_property (GObject * o switch (prop_id) { case PROP_PROFILE: - g_value_set_char (value, filter->profile); + g_value_set_string (value, filter->profile); break; case PROP_DISPLAY: g_value_set_boolean (value, filter->display);