facedetect: make updates on_change works as expected
authorNicola Murino <nicola.murino@gmail.com>
Wed, 21 May 2014 10:59:57 +0000 (12:59 +0200)
committerThiago Santos <ts.santos@osg.samsung.com>
Tue, 22 Jul 2014 10:59:09 +0000 (07:59 -0300)
https://bugzilla.gnome.org/show_bug.cgi?id=730509

ext/opencv/gstfacedetect.c

index c531480..5903108 100644 (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;