facedetect: make updates on_change works as expected

https://bugzilla.gnome.org/show_bug.cgi?id=730509
This commit is contained in:
Nicola Murino 2014-05-21 12:59:57 +02:00 committed by Thiago Santos
parent 00b33e2068
commit 3896dd8413

View file

@ -561,7 +561,8 @@ gst_face_detect_transform_ip (GstOpencvVideoFilter * base, GstBuffer * buf,
break;
case GST_FACEDETECT_UPDATES_ON_CHANGE:
if (faces && faces->total > 0) {
post_msg = TRUE;
if (!filter->face_detected)
post_msg = TRUE;
} else {
if (filter->face_detected) {
post_msg = TRUE;