facedetect: Use NULL to disable eyes/nose/mouth

Without printing a warning about it

https://bugzilla.gnome.org/show_bug.cgi?id=734623
This commit is contained in:
Valentin PONS 2014-08-13 16:57:15 +02:00 committed by Thiago Santos
parent 21e6989848
commit 03b70aecec

View file

@ -770,6 +770,8 @@ gst_face_detect_load_profile (GstFaceDetect * filter, gchar * profile)
{
CvHaarClassifierCascade *cascade;
if (profile == NULL)
return NULL;
if (!(cascade = (CvHaarClassifierCascade *) cvLoad (profile, 0, 0, 0))) {
GST_WARNING_OBJECT (filter, "Couldn't load Haar classifier cascade: %s.",
profile);