patch for mjpeg streams from remote cameras

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
Post Reply
xmedeko
Posts: 1
Joined: Tue Jan 17, 2006 10:26 am

patch for mjpeg streams from remote cameras

Post by xmedeko »

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
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Thanks for posting this. It looks ok, so I'll get it in for 1.22.0.
Phil
Post Reply