Skip to content

Commit 9ba7807

Browse files
committed
Fix json pages when multiple cameras used. Closes #1601
1 parent ec03434 commit 9ba7807

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/motion.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1409,6 +1409,13 @@ static int motion_init(struct context *cnt)
14091409
cnt->smartmask_lastrate = 0;
14101410

14111411
cnt->passflag = 0; //only purpose to flag first frame
1412+
/*If multiple cameras then we must set the pass flag for
1413+
* context zero since it is just the master and will
1414+
* not be set as a camera loop occurs */
1415+
if (cnt_list[1] != NULL) {
1416+
cnt_list[0]->passflag = 1;
1417+
}
1418+
14121419
cnt->rolling_frame = 0;
14131420

14141421
if (cnt->conf.emulate_motion) {

0 commit comments

Comments
 (0)