Commit Graph

65 Commits

Author SHA1 Message Date
Mr Dave
33b7d4f045 Clean tabs for issue 071831 patch 2015-09-05 13:08:41 -06:00
Mr Dave
0f45a713a7 Remote preview fixes 2015-09-05 10:09:55 -06:00
Mr Dave
cb7dcc3018 Add preview to webcontrol 2015-09-04 20:39:09 -06:00
David Fries
bab15abfee count webcontrol as a thread to avoid a crash
On a SIGHUP restart the main thread waits to restart until all worker
threads are finished executing, except webcontrol wasn't included.
If it was still running (such as reading a web request), it would
have a dangling context pointer after cnt_list was freed leading to a
crash.  This counts that thread in the running threads, as a
termination webcontrol_finish variable to terminate it indepdent of
the device thread, and creates a webcontrol_running to identify when
it is running.
2015-08-23 16:50:47 -05:00
David Fries
cf88e025ab typo fix, unused variable cleanup, etc
motion.c bad spelling, to "an image"
webhttpd.c consolidate the timeout to the top of the file as I needed
to change it for testing
2015-08-23 16:50:47 -05:00
Alfred Klomp
a36801e6dd free(): remove unnecessary NULL pointer checks
Calling free() on a NULL pointer is a completely harmless. Reduce code
complexity by removing the unnecessary checks.
2014-10-15 23:46:37 +02:00
Alfred Klomp
ccdeee0073 mymalloc(): don't cast return value; void* is always promoted 2014-10-15 21:59:38 +02:00
Dave
976fe425a5 Removed compiler warnings and small bug fix for webhttpd.c 2014-06-13 20:47:13 -06:00
Dave
048791e449 Merge tosiara/rtsp branch (commit 46cfcf31d, 2014/05/21) 2014-06-13 19:52:34 -06:00
Angel Carpintero
05b815771a - Added a new starting option -m to disable motion detection
- Fixed configure for SDL
- Little fix in logging because was broken
- Replaced malloc by calloc in mymalloc()
2012-01-01 20:07:17 +01:00
Angel Carpintero
d8063fb1df - Change default log level to 6 / NTC
- Reviewed log levels to make motion less verbose and move most of them to NTC level.
2010-05-23 00:01:05 +02:00
AngelCarpintero
07f9e36891 fixes in new log system 2010-04-05 03:02:41 +00:00
AngelCarpintero
f7469950d0 Added a macro MOTION_LOG , no need to add __FUNCTION__ anymore. 2010-04-04 21:50:50 +00:00
AngelCarpintero
79cf297cd4 Implemented http://www.lavrsen.dk/foswiki/bin/view/Motion/MotionLog 2010-04-03 19:34:23 +00:00
AngelCarpintero
6d35a01104 Make cosmetic changes in comments, description of functions and fix some code to be compliant with CODE STANDARD 2010-03-29 19:24:57 +00:00
AngelCarpintero
4bca8c16c0 Fix print of size_t using %Zu 2009-12-03 18:47:13 +00:00
AngelCarpintero
62c3e2db4a Added ipv6_enabled and little patch for BSD 2009-07-20 10:53:36 +00:00
AngelCarpintero
0f71dabed4 Added the option logfile to log message to text file. Removed level -1 to log to stderr, don't use always short 2009-03-09 04:36:17 +00:00
AngelCarpintero
a0d2151a3e http://www.lavrsen.dk/twiki/bin/view/Motion/UvcvideoMjpegPatch, Code Standard, extpipe (experimental) 2008-07-28 04:22:45 +00:00
AngelCarpintero
c2044fbe09 Apply new code standard ( chuck 2 ) 2008-07-16 20:34:23 +00:00
AngelCarpintero
406ade0aa8 - Fix round robin in BSD switching to METEOR_CAP_SINGLE
- Some improvements in capture code , added better logging
- Disable IPV6 in BSD  
- Free mutex in web control on error
2008-07-09 11:05:22 +00:00
AngelCarpintero
dc27136cbe Update log adding function name , remove setup_mode as a login level. Added servo_position() and check limits to avoid overflow maxN , minN 2008-07-07 13:53:42 +00:00
AngelCarpintero
716b5f171e Fix a typo , more debug stuff in track , fix not open port resetting fd to -1 2008-07-03 06:39:46 +00:00
AngelCarpintero
48aa7acbee Fix typos , log message , track_move no need to be called from motion when no active ( auto tracking ) , reverse center 2008-07-03 02:09:30 +00:00
AngelCarpintero
29fe6c47f3 Basic Servo API implementation , auto track might be broken yet 2008-07-02 03:58:03 +00:00
AngelCarpintero
2dafe96627 Added a new option name change and replace malloc/strdup by mymalloc and mystrdup 2008-06-15 23:27:49 +00:00
AngelCarpintero
e892397a1d http://www.lavrsen.dk/twiki/bin/view/Motion/SupportQuestion2008x06x11x183727 ( support encode videos 1280x1024) 2008-06-13 08:56:15 +00:00
AngelCarpintero
6190728875 Added write_nonblock and read_noblock functions that use a limit of 1 second writes/reads 2008-06-12 05:52:22 +00:00
AngelCarpintero
fa6e94cba9 Fix a security issue in web control interface and update CHANGELOG & CREDITS from 3.2.10.1 2008-06-10 23:19:31 +00:00
AngelCarpintero
1594641b6e Security fix 2008-06-06 08:07:04 +00:00
AngelCarpintero
be4a74c7a8 Makeking changes according to http://www.lavrsen.dk/twiki/bin/view/Motion/IntuitiveOptionNamesDiscussion ( locate_motion, sql_log_movie , webcontrol_*, despeckle_filter. Add a wrapped #ifdef / #endif for FFMPEG in motion.c 2008-05-21 12:53:43 +00:00
AngelCarpintero
568b7752bb Major clean up code , apply CODE_STANDARD rules, add partially IPV6 http://www.lavrsen.dk/twiki/bin/view/Motion/IPv6 ( webcam and http-control , not netcam yet ) 2008-05-12 02:39:58 +00:00
AngelCarpintero
638114a49f Added a missing space in detection status 2008-05-03 02:22:09 +00:00
AngelCarpintero
bafef960f6 Avoid Conditional jump or move depends on uninitialised value(2) in alg_update_reference_frame (alg.c:1092), make sure that http control exits fine 2008-02-23 14:14:01 +00:00
AngelCarpintero
30f6d51b61 Fix an issue to access to short types , but not a solution to type ranges values yet. 2008-02-18 11:12:07 +00:00
AngelCarpintero
71874f82b5 Better ident, fix missing K&R if/else style and fix some LOG_DEBUG in netcam. 2008-01-27 22:03:20 +00:00
AngelCarpintero
b6c1a012df Fix logging level in track.c , added some more unsigned short int and comment some duplicated includes 2008-01-13 08:43:05 +00:00
AngelCarpintero
3b6d957fc0 Fix Fix http://www.lavrsen.dk/twiki/bin/view/Motion/BugReport2007x11x25x102808 2007-12-02 17:38:34 +00:00
AngelCarpintero
3ededa4dbd Added on_camera_lost to motion-dist.conf.in , fix back link for threads in http control 2007-12-02 17:04:28 +00:00
AngelCarpintero
a8abaed550 Complete http://www.lavrsen.dk/twiki/bin/view/Motion/FeatureRequest2007x11x19x181541 with help text 2007-12-02 16:06:49 +00:00
DagErlandsson
b16ddd32ed Added watchdog, camera lost event, Retry connect camera, improved thread handling. See http://www.lavrsen.dk/twiki/bin/view/Motion/WatchdogAndThreadPatch for more details. 2007-12-02 15:25:49 +00:00
AngelCarpintero
6369eed77f Change http control according with http://www.lavrsen.dk/twiki/bin/view/Motion/FeatureRequest2007x11x19x181541, not implemented yet text help but link to Twiki. 2007-12-02 03:55:35 +00:00
AngelCarpintero
e0eaf88040 Increase buffer size in webhttpd to allow a longer host size. Added latest stable version of pwc-ioctl.h. Change int types values for track also changing motion man page. 2007-11-24 10:47:13 +00:00
AngelCarpintero
68258b5319 Update CHANGELOG and CREDITS , minor changes in variable types and webhttpd.c 2007-11-23 16:33:54 +00:00
AngelCarpintero
97c586d097 Replace types short unsigned int by unsigned short int, start changing types in conf.c / conf.h not hurting yet ;-), Fix warning in video2.c , changed buffer size and fix track response values and select box. 2007-11-23 13:30:02 +00:00
AngelCarpintero
c18de26970 Fix motion_log() message on write file, resize static buffers in webhttpd 2007-11-22 15:47:03 +00:00
AngelCarpintero
eb9751868b Fixed a problem with parameters that contains number like v4l2_palette 2007-11-22 10:40:49 +00:00
AngelCarpintero
215cf622e3 Implement missing funcionality in http://www.lavrsen.dk/twiki/bin/view/Motion/FeatureRequest2007x11x19x181541 2007-11-22 10:04:33 +00:00
AngelCarpintero
57e2725249 Fix a warning in FreeBSD refinition of HAVE_STDLIB_H 2007-11-20 11:54:24 +00:00
AngelCarpintero
2ca86d49eb Fix a minor issue in thread4.conf and initialize ret in check_authentication() 2007-11-12 06:18:11 +00:00