From 77055ee1cc5a184c4d708d4f75c09e5e3f4e265c Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 20 Apr 2021 16:18:50 -0400 Subject: [PATCH] Remove unused code --- src/zm_monitorstream.cpp | 10 +--------- src/zm_monitorstream.h | 1 - 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/zm_monitorstream.cpp b/src/zm_monitorstream.cpp index a660eea6e..52ccfeeb1 100644 --- a/src/zm_monitorstream.cpp +++ b/src/zm_monitorstream.cpp @@ -562,14 +562,6 @@ void MonitorStream::runStream() { Debug(2, "Not using playback_buffer"); } // end if connkey & playback_buffer - // if MaxFPS < 0 as in 1/60 = 0.017 then we won't get another frame for 60 sec. - double capture_fps = monitor->GetFPS(); - double capture_max_fps = monitor->GetCaptureMaxFPS(); - if ( capture_max_fps && ( capture_fps > capture_max_fps ) ) { - Debug(1, "Using %.3f for fps instead of current fps %.3f", capture_max_fps, capture_fps); - capture_fps = capture_max_fps; - } - while (!zm_terminate) { bool got_command = false; if ( feof(stdout) ) { @@ -931,7 +923,7 @@ void MonitorStream::SingleImageZip(int scale) { snap_image->Zip(img_buffer, &img_buffer_size); fprintf(stdout, - "Content-Length: %ld\r\n" + "Content-Length: %lu\r\n" "Content-Type: image/x-rgbz\r\n\r\n", img_buffer_size); fwrite(img_buffer, img_buffer_size, 1, stdout); diff --git a/src/zm_monitorstream.h b/src/zm_monitorstream.h index c00072466..0c1f92777 100644 --- a/src/zm_monitorstream.h +++ b/src/zm_monitorstream.h @@ -36,7 +36,6 @@ class MonitorStream : public StreamBase { int temp_image_buffer_count; int temp_read_index; int temp_write_index; - static const uint32 MAX_SLEEP_USEC = 1000000; // 1 sec protected: time_t ttl;