Hi,
I have used ZM (v1.21.4) for a remote camera and have unset ZM_NETCAM_REGEXPS (to save CPU). Then I got lot of errors:
zmc_m1[11513]: ERR [Found unsupported content type ...
I've analysed source code and made the following change:
--- zm_remote_camera.cpp.orig 2006-01-17 11:18:15.065401776 +0100
+++ zm_remote_camera.cpp 2006-01-17 11:19:13.792473904 +0100
@@ -557,7 +557,7 @@
static int content_length;
static char content_type[32];
static char content_boundary[64];
- int content_boundary_len;
+ static int content_boundary_len;
while ( true )
{
@@ -579,6 +579,7 @@
content_length = 0;
content_type[0] = '\0';
content_boundary[0] = '\0';
+ content_boundary_len = 0;
}
case HEADERCONT :
{
Now everythings work fine.
Cheers
Andrew
patch for mjpeg streams from remote cameras
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact: