* Status and Text UI get
* Additional webu text revisions
1. Only provide webcontrol parms in the list on the main thread.
2. Use main configuration values when parm is not in camera specific config file
3. Break out of loop once parm is found in get
4. Check for numeric thread number when requesting status
5. Send result messages when user requests actions/track/set
* Add event listener for completed pause/start
In commit da556d7 (store the value of 'camera_dir'), a memory leak
was introduced due to not freeing this memory in context_destroy().
I followed the advice in PR #639 to correct this.
Valgrind was used to find this leak and test for successful fixing.
Config included a 'camera_dir' with two camera config files.
Command ran: valgrind --leak-check=full ./bin/motion -n
Before:
HEAP SUMMARY:
in use at exit: 91,538 bytes in 13 blocks
total heap usage: 4,227 allocs, 4,214 frees, 20,448,321 bytes allocated
126 bytes in 3 blocks are definitely lost in loss record 8 of 11
at 0x4C2FB55: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x406A6D: mymalloc (motion.c:3401)
by 0x40D0CF: mystrdup (conf.c:2687)
by 0x40D30C: mystrcpy (conf.c:2664)
by 0x40D30C: copy_string (conf.c:2470)
by 0x40D565: read_camera_dir (conf.c:2883)
by 0x40CA10: conf_process (conf.c:2034)
by 0x40D850: conf_load (conf.c:2236)
by 0x407063: cntlist_create (motion.c:2876)
by 0x407063: motion_startup (motion.c:2930)
by 0x4052B7: main (motion.c:3128)
LEAK SUMMARY:
definitely lost: 126 bytes in 3 blocks
indirectly lost: 0 bytes in 0 blocks
possibly lost: 0 bytes in 0 blocks
still reachable: 91,412 bytes in 10 blocks
suppressed: 0 bytes in 0 blocks
After:
HEAP SUMMARY:
in use at exit: 91,412 bytes in 10 blocks
total heap usage: 4,201 allocs, 4,191 frees, 20,447,579 bytes allocated
LEAK SUMMARY:
definitely lost: 0 bytes in 0 blocks
indirectly lost: 0 bytes in 0 blocks
possibly lost: 0 bytes in 0 blocks
still reachable: 91,412 bytes in 10 blocks
suppressed: 0 bytes in 0 blocks
* Rename 'lightswitch' to 'lightswitch_percent' and properly deprecate the old option
* Add 'lightswitch_frames' for how many frames to ignore Defaulting to the original '5' and set a hard range of '1-1000'
* Updated config guide and supplied example config
Also updated the 'lightswitch_percent' comments in the config to match those in conf.c
Closes#686
Use the same timestamp for FILECREATE and FILECLOSE events
Propagate timestamp to the FILECREATE and FILECLOSE events, so the
timestamp available for the "Conversion Specifiers" for SQL queries
matches the timestamp used in filenames.
Move FILE_CREATE event call from picture.c:put_picture() to its calling functions in event.c.
Add new option to execute a SQL query on the FILECLOSE event
Don't try to execute empty sqlquery strings
Always clear result with PQclear
Improve Postgresql error handling
Don't regard PGRES_TUPLES_OK status as error.
Print Postgresql error status and error message on error.
* Open guide in new window or tab
* Pad the bottom of header-center for a smoother look
* Pad the bottom of 'main-content' below 'live-preview'
* Dropdown
* Allow closing the dropdown menus by clicking elsewhere on the page
1. Revert to just capturing time directly rather than in a routine.
2. Check for null format context pointer before writing trailer.
3. Terminate movie when lost connection.
4. Clean up context when failed resize.
5. Unlock mutex on failed first image.
6. Fix memory leak when recovering from watchdog timeout.
* Move setjmp invocation back into decoding function.
Behavior is undefined if longjmp is called after the function containing
setjmp invocation has terminated.
* Revert "Add error checking on jpeg utils (#563)"
This is dead code because longjmp invocation ensures control is returned
to the existing error path.
This reverts commit caea41df75.
* Silence spurious gcc 4.8.4 warning.
* Fix issues with vid_control_params handling of depreciated parameters
* Moved the comment of calling copy_vid_ctrl to where it actually happens
* The if checks for the names were inverse of what they needed to be and ALL
depreciated parameters were taking this path
copy_vid_ctrl:
* make it static like its forward declaration
* power_line_frequency is default at -1, so 0 needs to be copied over
but anything with a value of 0 was being skipped
* Fix handling of depreciated text_double
Copying the bool value of text_double directly to text_scale copies
a value of 0 for off and 1 for on, which ends up with no text or
the default of no upscaling, respectively.
We need to handle this with a custom function to translate the bool
to 1 (for no upscaling) and 2 (for typical double upscaling).
* Update motion-dist.conf.in for text_scale
Add track_generic_move parameter to execute external script for moving camera
Provide environment variables that can be used by external script for tracking.
1. Revise v4l2 for new control option of vid_control_params
2. Refactor most of the video_v4l2.c code
3. Revisions required for video_bktr.c
4. Revise sequence for configuration parms on webui to ensure similar parameters are together.
Closes#363Closes#551Closes#552Closes#582Closes#608Closes#613
1. Change from htmlpreview to rawgit.
2. In guide have top menu always point to home page.
3. Include the home page in the usage notice.
4. Reference home page guide as preferred default
5. Update changelog with revisions since 4.1.1