3489ef23e63445a790ae555bf78225f92326ee67
[openwrt/svn-archive/archive.git] / multimedia / motion / patches / 001-ffmpeg.patch
1 Index: motion-3.2.7/motion.c
2 ===================================================================
3 --- motion-3.2.7.orig/motion.c 2007-06-11 08:27:27.000000000 +0100
4 +++ motion-3.2.7/motion.c 2007-06-11 08:27:35.000000000 +0100
5 @@ -1279,6 +1279,7 @@
6 * httpd-control snaps are always enabled.
7 */
8
9 +#ifdef HAVE_FFMPEG
10 /* time_current_frame is used both for snapshot and timelapse features */
11 time_current_frame = cnt->currenttime;
12
13 @@ -1288,7 +1289,7 @@
14 event(cnt, EVENT_IMAGE_SNAPSHOT, newimg, NULL, NULL, cnt->currenttime_tm);
15 cnt->snapshot = 0;
16 }
17 -
18 +#endif /* HAVE_FFMPEG */
19
20 /***** MOTION LOOP - TIMELAPSE FEATURE SECTION *****/
21
22 @@ -1363,9 +1364,9 @@
23 event(cnt, EVENT_TIMELAPSEEND, NULL, NULL, NULL, cnt->currenttime_tm);
24
25
26 + time_last_frame = time_current_frame;
27 #endif /* HAVE_FFMPEG */
28
29 - time_last_frame = time_current_frame;
30
31
32 /***** MOTION LOOP - VIDEO LOOPBACK SECTION *****/