mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +00:00
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:
parent
21e6989848
commit
03b70aecec
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue