Add recording functionality to webcontrol

This commit is contained in:
Mr-Dave
2022-04-10 23:15:35 -06:00
parent d2b35ed367
commit d1d7401488
15 changed files with 1037 additions and 220 deletions

View File

@@ -655,6 +655,7 @@ static void motion_cam_add(struct ctx_motapp *motapp)
motapp->cam_list[indx_cam]->conf->camera_id = indx;
motapp->cam_list[indx_cam]->dbse = (struct ctx_dbse *)mymalloc(sizeof(struct ctx_dbse));
motapp->cam_list[indx_cam]->conf->webcontrol_port = 0;
dbse_motpls_init(motapp->cam_list[indx_cam]);
motapp->cam_add = false;
@@ -686,6 +687,8 @@ static void motion_cam_delete(struct ctx_motapp *motapp)
}
motapp->cam_list[motapp->cam_delete]->dbse = NULL;
dbse_motpls_deinit(motapp->cam_list[motapp->cam_delete]);
/* Delete the config context */
delete motapp->cam_list[motapp->cam_delete]->conf;
delete motapp->cam_list[motapp->cam_delete];