Commit Graph

20102 Commits (31b9fd0c5e49181358eb225601183f22dfec1701)

Author SHA1 Message Date
Aktarus 9f62a3f4bd Update debian.rst, enable autostart of ZM at boot
added one line to enable autostart of ZM at boot
2024-08-08 08:01:58 -04:00
Isaac Connor a199b7e970 Must obtain lock in free_it 2024-08-08 08:01:29 -04:00
Isaac Connor 2fad7c160a Change log to a debug 2024-08-08 08:00:54 -04:00
Isaac Connor 792a62d1d6 Sometimes the initial keyframe packet will have AV_NOPTS for pts and dts. When this happenes, set last_dts to -1 instead of 0, so that when the next packet comes in and sets the first_dts value, the resulting dts will be 0 which is > -1. 2024-08-02 13:19:58 -04:00
Isaac Connor 06448f0885 Use packetqueue.unlock so that we wakeup event threads waiting on the packet. 2024-08-02 12:42:44 -04:00
Isaac Connor fe0952588a Use get_packet_no_wait and a sleep so that if told to close we give up on getting a packet 2024-08-02 12:41:51 -04:00
Isaac Connor d194a97df8 Add get_packet_no_wait for tasks that should not wait indefinitely 2024-08-02 12:40:27 -04:00
Isaac Connor cfdfe8344a Check for iterator pointing to first packet. This is a special case. 2024-08-01 12:03:47 -04:00
Isaac Connor 0e87a4e982 Make second segfault Fatal as Panic doesn't exit 2024-07-17 15:34:44 -04:00
Isaac Connor 67ca121811 Put back code that looks for iterators when cleaning packet queue. event thread can now have an iterator that follows analysis 2024-07-17 15:34:44 -04:00
Isaac Connor 39c53de33f Merge branch 'release-1.36' of github.com:ZoneMinder/zoneminder into release-1.36 2024-07-16 10:20:32 -04:00
Isaac Connor 04b58ab51e Put swap file File::find into an eval because it can die. 2024-07-16 10:19:51 -04:00
Isaac Connor 7efddac6a2 Limit segfaults to 1 2024-07-09 11:28:46 -04:00
Isaac Connor a52d4675cd Always re-apply the latest update. Mainly because sometimes Isaac forgets to add the zm_update file when bumping versions, also in release branches, we increment version before release. zm_update scripts are always supposed to be re-runnable, so this is ok, if a little skeezy 2024-07-09 11:28:00 -04:00
Isaac Connor 22ebade6dc Add last_duration to warning about non increasing dts 2024-07-09 11:26:52 -04:00
Isaac Connor 7ad7721955 Slight code improvements, mostly for readability 2024-07-09 11:25:24 -04:00
Isaac Connor 90a64a5ae9 Add last_duration to warning about non increasing dts 2024-07-04 14:52:22 -04:00
Isaac Connor 18ba1eb8c8 Remove & from functions taking a shared_ptr 2024-07-04 09:24:21 -04:00
Shobu UMEMURA f7a8d5b46d Update charset header in ja_jp.php from Shift_JIS to UTF-8
Given that most Japanese servers now use UTF-8, it makes sense to set UTF-8 as the default charset.
2024-07-04 09:21:10 -04:00
Isaac Connor b9ae17b8fe Don't pass shared_ptr by ref. Defeats the ref counting 2024-07-04 09:20:41 -04:00
Isaac Connor 2a9fa4a4f1 When dts==last_dts, don't log it as an error. It is too common. Just add duration and move on. 2024-06-26 14:14:05 -04:00
Isaac Connor 38e80b9024 Use last duration instead of 1 when adjusting dts when non-monotonic. Some googling indicates this might be a better approach. What I am seeing with a tapo C520WS agrees. 2024-06-26 14:12:59 -04:00
Isaac Connor 2ba179b54e ENsure that dts increases. Not enough to just == last_dts 2024-06-26 14:10:23 -04:00
Isaac Connor 3ef4c36b09 Don't log failure to get packet. Can only happen when stopping the pcketqueue. 2024-06-26 14:06:18 -04:00
Isaac Connor 8520f32990 Fix recording when Decoding=None by setting packet->decoded in capture 2024-06-26 14:01:52 -04:00
Isaac Connor 904a04207e Reset last_capture_image_count in connect so that we don't get negative fps reports and possible floating point exceptions 2024-06-26 14:01:02 -04:00
Isaac Connor b8cea22530 Update depends for noble 2024-06-18 18:58:20 -04:00
Isaac Connor 194b55a21c move image_count to shared mem. Use it in monitorstream to detect when last_write_time % buffer_count hasn't changed, but there is in fact a new image. 2024-06-17 18:40:46 -04:00
Isaac Connor a1cabef2e2 Wait for decoded flag so that we stay behind the decoder 2024-06-17 14:27:37 -04:00
Isaac Connor 6b63d58534 Mark audio packets as decoded 2024-06-17 14:27:18 -04:00
Isaac Connor c9d5daf649 Redo the event thread. Instead of analysis adding packets to an event specific queue, just pass in the iterator and let the event thread do it's own locking. This allows us to free ram in packet in the event, and not segfault. 2024-06-15 13:54:32 -04:00
Isaac Connor 278f0d0eb4 Add dependencies for ubuntu noble 2024-06-10 10:15:46 -04:00
Isaac Connor aae2a9b48c Limit scale to 1.1 to prevent requesting images larger than 100% 2024-05-30 12:19:11 -04:00
Isaac Connor 0812aa4725 Limit scale to 16x mainly to put an upper bound on the amount of ram we might use. 2024-05-30 12:15:05 -04:00
Isaac Connor a8fcebd4b0 Move code to shutdown the process properly into exit_zms and use it when auth fails. The stops a segfault. 2024-05-30 12:15:00 -04:00
Isaac Connor 062cf568a3 Sanitise filter[Id] when parsing filter. Fixes GHSA-6rrw-66rf-6g5f 2024-05-30 10:05:15 -04:00
Isaac Connor 6cc64dddff Sanitise displayinterval,speed and scale parameters. Fixes GHSA-pjjm-3qxp-6hj8 2024-05-30 10:05:15 -04:00
Isaac Connor 90ec23b410 Sanitise filter[Id] 2024-05-30 10:05:15 -04:00
Isaac Connor 8f774a0030 Merge branch 'release-1.36' of github.com:ZoneMinder/zoneminder into release-1.36 2024-05-25 09:27:35 -04:00
Isaac Connor 43bcd2ee4b Use parseInt to make MaxImageBufferCount and PreEventCount comparison work. 2024-05-22 09:14:55 -04:00
Isaac Connor d8647ac2bb Fre update analysis image when encoding as it won't be used anyways. Should reduce ram use while recording 2024-05-22 09:14:55 -04:00
Isaac Connor b5d8f301c2 When done with a packet in event, clear raw images to free up ram early 2024-05-22 09:14:55 -04:00
Isaac Connor 0b641aabc4 Delete monitor status that has not been updated in a minute 2024-05-22 09:14:55 -04:00
Isaac Connor 6793d50385 Delete Monitor_Status records that havn't been updated in over a minute 2024-05-22 09:14:55 -04:00
Isaac Connor 66beae55fa Include UpdatedOn when updating Monitor_Status 2024-05-22 09:14:55 -04:00
Isaac Connor be08909af5 Move update for 1.37.25 to 1.36.34 2024-05-22 09:14:55 -04:00
Isaac Connor 01117348c6 Add UpdatedOn field to Monitor_Status 2024-05-22 09:14:55 -04:00
Isaac Connor 2fa8ae4db1 Change save button to a regular button that calls validateForm and don't set form.subit to validateForm. ValidateForm will now alert and switch tabs to better inform what the incorrect value is. Built-in validation doesn't work due to tabs and the invalid input not being focusable 2024-05-22 09:14:55 -04:00
Isaac Connor efcf5f6cec Merge pull request #4025 from IgorA100/patch-108
When save cookies via PHP >= 7.3.0, add handling of the "path" value in the options (session.php)
2024-05-22 08:59:13 -04:00
Isaac Connor 101bf62a29 Set default value for rows per page using WEB_EVENTS_PER_PAGE. Fixes #3728 2024-05-21 09:41:07 -04:00