Upgrade motion to 3.2.10.1 (#3678)
[openwrt/svn-archive/archive.git] / multimedia / motion / patches / 001-ffmpeg.patch
1 --- a/motion.c
2 +++ b/motion.c
3 @@ -1611,6 +1611,7 @@
4 * httpd-control snaps are always enabled.
5 */
6
7 +#ifdef HAVE_FFMPEG
8 /* time_current_frame is used both for snapshot and timelapse features */
9 time_current_frame = cnt->currenttime;
10
11 @@ -1620,7 +1621,7 @@
12 event(cnt, EVENT_IMAGE_SNAPSHOT, cnt->current_image->image, NULL, NULL, &cnt->current_image->timestamp_tm);
13 cnt->snapshot = 0;
14 }
15 -
16 +#endif /* HAVE_FFMPEG */
17
18 /***** MOTION LOOP - TIMELAPSE FEATURE SECTION *****/
19
20 @@ -1695,9 +1696,9 @@
21 event(cnt, EVENT_TIMELAPSEEND, NULL, NULL, NULL, cnt->currenttime_tm);
22
23
24 + time_last_frame = time_current_frame;
25 #endif /* HAVE_FFMPEG */
26
27 - time_last_frame = time_current_frame;
28
29
30 /***** MOTION LOOP - VIDEO LOOPBACK SECTION *****/