packages: Fix dbus. Closes #2562, thanks loswillios
[openwrt/svn-archive/archive.git] / multimedia / motion / patches / 001-ffmpeg.patch
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.
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 @@ -1294,7 +1295,7 @@ static void *motion_loop(void *arg)
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 @@ -1369,9 +1370,9 @@ static void *motion_loop(void *arg)
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 *****/