2008-01-09 20:02:34 +00:00
|
|
|
Index: motion-3.2.9/motion.c
|
|
|
|
===================================================================
|
|
|
|
--- motion-3.2.9.orig/motion.c
|
|
|
|
+++ motion-3.2.9/motion.c
|
|
|
|
@@ -1285,6 +1285,7 @@ static void *motion_loop(void *arg)
|
2006-08-05 16:13:13 +00:00
|
|
|
* httpd-control snaps are always enabled.
|
|
|
|
*/
|
2007-04-02 10:27:11 +00:00
|
|
|
|
|
|
|
+#ifdef HAVE_FFMPEG
|
2006-08-05 16:13:13 +00:00
|
|
|
/* time_current_frame is used both for snapshot and timelapse features */
|
2007-04-02 10:27:11 +00:00
|
|
|
time_current_frame = cnt->currenttime;
|
|
|
|
|
2008-01-09 20:02:34 +00:00
|
|
|
@@ -1294,7 +1295,7 @@ static void *motion_loop(void *arg)
|
2007-04-02 10:27:11 +00:00
|
|
|
event(cnt, EVENT_IMAGE_SNAPSHOT, newimg, NULL, NULL, cnt->currenttime_tm);
|
2006-08-05 16:13:13 +00:00
|
|
|
cnt->snapshot = 0;
|
|
|
|
}
|
|
|
|
-
|
|
|
|
+#endif /* HAVE_FFMPEG */
|
2007-04-02 10:27:11 +00:00
|
|
|
|
2006-08-05 16:13:13 +00:00
|
|
|
/***** MOTION LOOP - TIMELAPSE FEATURE SECTION *****/
|
|
|
|
|
2008-01-09 20:02:34 +00:00
|
|
|
@@ -1369,9 +1370,9 @@ static void *motion_loop(void *arg)
|
2006-08-05 16:13:13 +00:00
|
|
|
event(cnt, EVENT_TIMELAPSEEND, NULL, NULL, NULL, cnt->currenttime_tm);
|
|
|
|
|
|
|
|
|
2007-04-02 10:27:11 +00:00
|
|
|
+ time_last_frame = time_current_frame;
|
|
|
|
#endif /* HAVE_FFMPEG */
|
|
|
|
|
|
|
|
- time_last_frame = time_current_frame;
|
2006-08-05 16:13:13 +00:00
|
|
|
|
2007-04-02 10:27:11 +00:00
|
|
|
|
|
|
|
/***** MOTION LOOP - VIDEO LOOPBACK SECTION *****/
|