Allow any type of netcam

This commit is contained in:
MrDave
2021-06-18 23:12:19 -06:00
committed by Mr-Dave
parent 05f7a04786
commit 5b75f5d767
2 changed files with 7 additions and 21 deletions

View File

@@ -471,14 +471,7 @@ static int init_camera_type(struct ctx_cam *cam)
}
if (cam->conf->netcam_url != "") {
if ((cam->conf->netcam_url.compare(0,5,"mjpeg") == 0) ||
(cam->conf->netcam_url.compare(0,4,"http") == 0) ||
(cam->conf->netcam_url.compare(0,4,"v4l2") == 0) ||
(cam->conf->netcam_url.compare(0,4,"file") == 0) ||
(cam->conf->netcam_url.compare(0,4,"rtmp") == 0) ||
(cam->conf->netcam_url.compare(0,4,"rtsp") == 0)) {
cam->camera_type = CAMERA_TYPE_NETCAM;
}
cam->camera_type = CAMERA_TYPE_NETCAM;
return 0;
}