1 Index: motion-3.2.9/motion.c
2 ===================================================================
3 --- motion-3.2.9.orig/motion.c
4 +++ motion-3.2.9/motion.c
5 @@ -1285,6 +1285,7 @@ static void *motion_loop(void *arg)
6 * httpd-control snaps are always enabled.
10 /* time_current_frame is used both for snapshot and timelapse features */
11 time_current_frame = cnt->currenttime;
13 @@ -1294,7 +1295,7 @@ static void *motion_loop(void *arg)
14 event(cnt, EVENT_IMAGE_SNAPSHOT, newimg, NULL, NULL, cnt->currenttime_tm);
18 +#endif /* HAVE_FFMPEG */
20 /***** MOTION LOOP - TIMELAPSE FEATURE SECTION *****/
22 @@ -1369,9 +1370,9 @@ static void *motion_loop(void *arg)
23 event(cnt, EVENT_TIMELAPSEEND, NULL, NULL, NULL, cnt->currenttime_tm);
26 + time_last_frame = time_current_frame;
27 #endif /* HAVE_FFMPEG */
29 - time_last_frame = time_current_frame;
32 /***** MOTION LOOP - VIDEO LOOPBACK SECTION *****/