Skip to content

Commit e3e9988

Browse files
AMCREST and ONVIF are not mutually exclusive.
1 parent 7c73961 commit e3e9988

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/zm_monitor.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,6 @@ void Monitor::Load(MYSQL_ROW dbrow, bool load_zones=true, Purpose p = QUERY) {
686686
// get alarm text from table.
687687
onvif_alarm_txt = std::string(dbrow[col] ? dbrow[col] : "");
688688
col++;
689-
//if (onvif_alarm_txt.empty()) onvif_alarm_txt = "MotionAlarm";
690689

691690
/* "`ONVIF_URL`, `ONVIF_Username`, `ONVIF_Password`, `ONVIF_Options`, `ONVIF_Event_Listener`, `use_Amcrest_API`, " */
692691
onvif_url = std::string(dbrow[col] ? dbrow[col] : "");
@@ -1904,7 +1903,9 @@ bool Monitor::Poll() {
19041903
delete Amcrest_Manager;
19051904
Amcrest_Manager = new AmcrestAPI(this);
19061905
}
1907-
} else if (onvif) {
1906+
}
1907+
1908+
if (onvif) {
19081909
if (onvif->isHealthy()) {
19091910
onvif->WaitForMessage();
19101911
} else {

0 commit comments

Comments
 (0)