mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
facedetect: make updates on_change works as expected
https://bugzilla.gnome.org/show_bug.cgi?id=730509
This commit is contained in:
parent
00b33e2068
commit
3896dd8413
1 changed files with 2 additions and 1 deletions
|
@ -561,7 +561,8 @@ gst_face_detect_transform_ip (GstOpencvVideoFilter * base, GstBuffer * buf,
|
||||||
break;
|
break;
|
||||||
case GST_FACEDETECT_UPDATES_ON_CHANGE:
|
case GST_FACEDETECT_UPDATES_ON_CHANGE:
|
||||||
if (faces && faces->total > 0) {
|
if (faces && faces->total > 0) {
|
||||||
post_msg = TRUE;
|
if (!filter->face_detected)
|
||||||
|
post_msg = TRUE;
|
||||||
} else {
|
} else {
|
||||||
if (filter->face_detected) {
|
if (filter->face_detected) {
|
||||||
post_msg = TRUE;
|
post_msg = TRUE;
|
||||||
|
|
Loading…
Reference in a new issue