From 3896dd8413b22694409561920fd1b4bce095f514 Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Wed, 21 May 2014 12:59:57 +0200 Subject: [PATCH] facedetect: make updates on_change works as expected https://bugzilla.gnome.org/show_bug.cgi?id=730509 --- ext/opencv/gstfacedetect.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/opencv/gstfacedetect.c b/ext/opencv/gstfacedetect.c index c531480a05..5903108306 100644 --- a/ext/opencv/gstfacedetect.c +++ b/ext/opencv/gstfacedetect.c @@ -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;