mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-03-31 04:02:54 -04:00
Add debug in Ready(). Reset image_count in Reload so that Ready() works after a reload.
This commit is contained in:
@@ -562,6 +562,7 @@ void Monitor::Load(MYSQL_ROW dbrow, bool load_zones=true, Purpose p = QUERY) {
|
||||
// How many frames we need to have before we start analysing
|
||||
ready_count = std::max(warmup_count, pre_event_count);
|
||||
|
||||
image_count = 0;
|
||||
last_alarm_count = 0;
|
||||
state = IDLE;
|
||||
last_signal = true; // Defaulting to having signal so that we don't get a signal change on the first frame.
|
||||
|
||||
@@ -709,6 +709,7 @@ public:
|
||||
return false;
|
||||
}
|
||||
if (image_count >= ready_count) {
|
||||
Debug(2, "Ready because image_count(%d) >= ready_count(%d)", image_count, ready_count);
|
||||
return true;
|
||||
}
|
||||
Debug(2, "Not ready because image_count(%d) <= ready_count(%d)", image_count, ready_count);
|
||||
|
||||
Reference in New Issue
Block a user