area_detect: small fix to respect minimum_motion_frames.

This commit is contained in:
JoergWeber
2007-12-22 09:36:28 +00:00
parent 57cb0c8efd
commit c7e2d16e4f

View File

@@ -1480,7 +1480,7 @@ static void *motion_loop(void *arg)
/* Simple hack to recognize motion in a specific area */
/* Do we need a new coversion specifier as well?? */
if ((cnt->conf.area_detect) && (cnt->event_nr != area_once) && (cnt->current_image->flags & IMAGE_MOTION)) {
if ((cnt->conf.area_detect) && (cnt->event_nr != area_once) && (cnt->current_image->flags & IMAGE_TRIGGER)) {
j = strlen(cnt->conf.area_detect);
for (i = 0; i < j; i++) {
z = cnt->conf.area_detect[i] - 49; /* 1 becomes 0 */