We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec03434 commit 9ba7807Copy full SHA for 9ba7807
1 file changed
src/motion.c
@@ -1409,6 +1409,13 @@ static int motion_init(struct context *cnt)
1409
cnt->smartmask_lastrate = 0;
1410
1411
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
+
1419
cnt->rolling_frame = 0;
1420
1421
if (cnt->conf.emulate_motion) {
0 commit comments