Commit Graph

20934 Commits (ca1ad2e2e46f2f36a971526c6d95bb09ccd5c332)

Author SHA1 Message Date
Isaac Connor ca1ad2e2e4 Fix use of filter instead of this 2022-08-04 09:07:33 -04:00
Isaac Connor 23c2546cb6 Record an Amcrest mac vendor but don't implement probe yet 2022-08-03 18:01:47 -04:00
Isaac Connor dc52105c8f Allow to link to ourself 2022-08-03 14:44:44 -04:00
Isaac Connor 4587d0576d Remove unused code 2022-08-03 14:30:18 -04:00
Isaac Connor 6c292dd0e3 Improve adding parenthesis, rename function to snake case 2022-08-03 14:30:18 -04:00
Isaac Connor e27e1c0991 Add backtrace to invalid value for width 2022-08-03 14:30:18 -04:00
Isaac Connor a00d332ade Rough in reports views and add Chart.min.js 2022-08-03 14:29:53 -04:00
Isaac Connor 6f146d1af0 Add MonitorLinkExpression.js 2022-08-03 12:14:51 -04:00
Isaac Connor 45697c7da9 Merge branch 'master' into reports 2022-08-03 11:57:07 -04:00
Isaac Connor 6e5b9b56ed Only load linked monitors if doing capture 2022-08-03 11:55:44 -04:00
Isaac Connor cf3c194e21 Handle when there are no servers and hence no defined ServerId in newMonitor 2022-08-03 11:55:44 -04:00
Isaac Connor b40423d720 Merge branch 'master' of github.com:ZoneMinder/zoneminder 2022-08-02 20:57:48 -04:00
Isaac Connor 2fa90cff4d Use const or let instead of var 2022-08-02 20:47:47 -04:00
Isaac Connor 89631a8531 Fix spelling 2022-08-02 20:47:07 -04:00
Isaac Connor 79f2d1d20f If nothing selected, present a message about it. This shouldn't happen, but does 2022-08-02 20:46:33 -04:00
Isaac Connor c40cedc15c Simply code about zm_terminate, replace fixed 60 second max sleep time with ZM_WATCH_MAX_DELAY 2022-08-02 20:45:45 -04:00
Isaac Connor 6f02096098 Notify all packets when doing packetqueue:stop so prevent deadlock when waiting for decode 2022-08-02 20:44:45 -04:00
Isaac Connor 1d40279fcf Check heartbeat time for monitors that don't do decoding 2022-08-02 20:44:10 -04:00
Isaac Connor 42bb0c41a0 Rename zmc_heartbeat_time to just heartbeat_time 2022-08-02 20:43:49 -04:00
Isaac Connor baf65819cb add notify_all functions 2022-08-02 20:43:20 -04:00
Isaac Connor a03189046e Rename zmc_heartbeat_time to heartbeat_time. Set it during waiting for prime and capturing. 2022-08-02 17:54:27 -04:00
Isaac Connor 30271283ba Make CMD_LIST available to specific monitors as well as all monitors. 2022-08-02 14:19:57 -04:00
Isaac Connor a9cc417a8b Fix logic around warning about keyframe interval being larger than max image buffer count. 2022-08-02 13:02:12 -04:00
Isaac Connor 53dbb71c78
Merge pull request #3546 from dougnazar/ffmpeg_use_av_packet_alloc
Switch from av_init_packet() to av_packet_alloc()
2022-08-02 10:57:50 -04:00
Isaac Connor 7121665376 cache bust MonitorLinkExpression.js 2022-08-02 10:38:55 -04:00
Isaac Connor 6934b7090d remove commented out code, use const for obr and cbr selects 2022-08-02 10:38:35 -04:00
Doug Nazar f4dd897ef4 Convert AVFrame* to custom unique_ptr (av_frame_ptr).
Switch all owning AVFrame* variables to av_frame_ptr for
automatic cleanup.

Use AVBufferRef to store frame data in AVFrame where appropriate
so that it can be freed automatically with it's AVFrame.

Handle allocation errors.
2022-07-30 13:21:11 -04:00
Doug Nazar acbdf1854d Add guard to handle resetting AVPacket after use.
Also handle allocation failures.
2022-07-29 14:56:38 -04:00
Doug Nazar 110cc436a3 Switch from av_init_packet() to av_packet_alloc()
Remove all uses of deprecated av_init_packet() and switch any stack
based AVPackets to unique_ptrs allocated with av_packet_alloc().

Ensure that all code paths call av_packet_unref() after use to reset
before next usage.
2022-07-29 14:56:26 -04:00
Isaac Connor 5776a766e1 fixup logic inversion on test_post_sql_conditions. condense code. 2022-07-29 13:59:21 -04:00
Isaac Connor e1581b6be6 db limits should not be affected by pre-conditions, so include the limit regardless of pre-sql-conditions. 2022-07-29 13:59:01 -04:00
Isaac Connor c937169a6b Fix logic inversion on test_pre_sql_conditions 2022-07-29 13:50:40 -04:00
Isaac Connor 4d31089707 Only decremember warned_count if > 0. Fixes too much logging. Add warning about keyframe interval being > max image buffer setting. 2022-07-29 13:49:34 -04:00
Isaac Connor 12c1011ff9 Use parseInt to turn '0' into 0 2022-07-29 10:44:28 -04:00
Isaac Connor d0cbb7b478 Sync up with c++ shm alignment to fix same size of 32bit 2022-07-29 10:27:18 -04:00
Isaac Connor d8dea37c88 When selecting AlarmedZone, must check for SCore > 0. 2022-07-28 16:33:38 -04:00
Isaac Connor 7f192c4e47 Merge pull request #3551 from dougnazar/fix_crash
Fix zmc Segfault on 1.36.20
2022-07-28 16:28:32 -04:00
Isaac Connor 33943acbc4 Code style, spacing. Move check for trailing slash into the if specified janus_path part 2022-07-28 16:27:28 -04:00
Isaac Connor f463246e43 Log reorder_queue_size 2022-07-28 15:46:01 -04:00
Isaac Connor 5cb5132bf7 Fix crash due to double delete of Janus_Manager 2022-07-28 15:26:32 -04:00
Isaac Connor b2bcd9bc25
Merge pull request #3545 from dougnazar/misc_fixes
Misc fixes
2022-07-27 12:42:44 -04:00
Doug Nazar a34db8bc38 Don't hardcode db in upgrade script. 2022-07-27 12:25:57 -04:00
Doug Nazar 590697bd80 Add padding to shared_data to re-align fields on 32bit 2022-07-27 12:25:47 -04:00
Isaac Connor bd304ecbec include ffmpeg.h. Fixes #3539 2022-07-26 19:09:16 -04:00
Isaac Connor abea055c37
Merge pull request #3541 from dougnazar/fix_ci_debian_packages
CI: Only attempt to publish packages on push.
2022-07-26 11:15:41 -04:00
Isaac Connor 8b80fd766c
Merge pull request #3543 from ben-rambam/master
Enable building on ubuntu jammy
2022-07-26 11:06:27 -04:00
Jonathan Mathews 7cc8cb17fa Enable building on ubuntu jammy 2022-07-26 09:36:27 -05:00
Doug Nazar 6e1901894f CI: Only attempt to create packages on push. 2022-07-25 11:33:54 -04:00
Isaac Connor 9b12797f75
Merge pull request #3540 from dougnazar/fix_stream_progress
Use old event unpack() on 32bit systems.
2022-07-24 21:03:24 -04:00
Isaac Connor 8788b372fe Don't reload img steam on auth hash change. Just update the global variable. 2022-07-24 20:39:09 -04:00