Use BOUNDARY instead of ZoneMinderFrame

This commit is contained in:
Isaac Connor 2020-09-02 16:34:56 -04:00
parent 0cd35518c3
commit f60d6ff1a3
1 changed files with 2 additions and 2 deletions

View File

@ -691,7 +691,7 @@ bool EventStream::sendFrame(int delta_us) {
bool send_raw = ((scale>=ZM_SCALE_BASE)&&(zoom==ZM_SCALE_BASE)) && filepath[0]; bool send_raw = ((scale>=ZM_SCALE_BASE)&&(zoom==ZM_SCALE_BASE)) && filepath[0];
fprintf(stdout, "--ZoneMinderFrame\r\n"); fprintf(stdout, "--" BOUNDARY "\r\n");
if ( (type != STREAM_JPEG) || (!filepath[0]) ) if ( (type != STREAM_JPEG) || (!filepath[0]) )
send_raw = false; send_raw = false;
@ -861,7 +861,7 @@ void EventStream::runStream() {
checkInitialised(); checkInitialised();
if ( type == STREAM_JPEG ) if ( type == STREAM_JPEG )
fputs("Content-Type: multipart/x-mixed-replace;boundary=ZoneMinderFrame\r\n\r\n", stdout); fputs("Content-Type: multipart/x-mixed-replace;boundary=" BOUNDARY "\r\n\r\n", stdout);
if ( !event_data ) { if ( !event_data ) {
sendTextFrame("No event data found"); sendTextFrame("No event data found");