Skip to content

Commit ab58d32

Browse files
committed
Process the command line option for pause. Closes #1600
1 parent 9ba7807 commit ab58d32

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/motion.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,10 @@ static int motion_init(struct context *cnt)
10711071
cnt->imgs.height_high = 0;
10721072
cnt->imgs.size_high = 0;
10731073
cnt->movie_passthrough = cnt->conf.movie_passthrough;
1074-
cnt->pause = cnt->conf.pause;
1074+
/* Pause may have been set via command line. If so, keep that value*/
1075+
if (cnt->pause == 0) {
1076+
cnt->pause = cnt->conf.pause;
1077+
}
10751078

10761079
MOTION_LOG(NTC, TYPE_ALL, NO_ERRNO
10771080
,_("Camera %d started: motion detection %s"),

0 commit comments

Comments
 (0)