mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +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,6 +561,7 @@ 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) {
|
||||||
|
if (!filter->face_detected)
|
||||||
post_msg = TRUE;
|
post_msg = TRUE;
|
||||||
} else {
|
} else {
|
||||||
if (filter->face_detected) {
|
if (filter->face_detected) {
|
||||||
|
|
Loading…
Reference in a new issue