Skip to content

Commit

Permalink
Remove cURL camera type
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Connor committed Sep 21, 2023
1 parent 45d641b commit a643ea4
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions src/zm_monitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@
#include "zm_libvlc_camera.h"
#endif // HAVE_LIBVLC

#if HAVE_LIBCURL
#include "zm_curl_camera.h"
#endif // HAVE_LIBCURL

#if HAVE_LIBVNC
#include "zm_libvnc_camera.h"
#endif // HAVE_LIBVNC
Expand Down Expand Up @@ -113,7 +109,6 @@ std::string CameraType_Strings[] = {
"Ffmpeg",
"LibVLC",
"NVSOCKET",
"CURL",
"VNC"
};

Expand Down Expand Up @@ -381,8 +376,6 @@ void Monitor::Load(MYSQL_ROW dbrow, bool load_zones=true, Purpose p = QUERY) {
type = NVSOCKET;
} else if ( ! strcmp(dbrow[col], "Libvlc") ) {
type = LIBVLC;
} else if ( ! strcmp(dbrow[col], "cURL") ) {
type = LIBCURL;
} else if ( ! strcmp(dbrow[col], "VNC") ) {
type = VNC;
} else {
Expand Down Expand Up @@ -761,27 +754,6 @@ void Monitor::LoadCamera() {
#endif // HAVE_LIBVLC
break;
}
case LIBCURL: {
#if HAVE_LIBCURL
camera = zm::make_unique<cURLCamera>(this,
path.c_str(),
user.c_str(),
pass.c_str(),
camera_width,
camera_height,
colours,
brightness,
contrast,
hue,
colour,
purpose == CAPTURE,
record_audio
);
#else // HAVE_LIBCURL
Error("You must have libcurl installed to use ffmpeg cameras for monitor %d", id);
#endif // HAVE_LIBCURL
break;
}
case VNC: {
#if HAVE_LIBVNC
camera = zm::make_unique<VncCamera>(this,
Expand Down

0 comments on commit a643ea4

Please sign in to comment.