From 15b01c27304a52ea7e3e17fa916ec43cb38b2604 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 19 Nov 2021 11:59:19 -0500 Subject: [PATCH] timestamp image before scaling. Fixes lack of scaling when TIMESTAMP_ON_CAPTURE is off --- src/zm_monitorstream.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/zm_monitorstream.cpp b/src/zm_monitorstream.cpp index 126ed708e..e38c24473 100644 --- a/src/zm_monitorstream.cpp +++ b/src/zm_monitorstream.cpp @@ -378,8 +378,9 @@ bool MonitorStream::sendFrame(const char *filepath, const timeval ×tamp) { } // end bool MonitorStream::sendFrame(const char *filepath, struct timeval *timestamp) bool MonitorStream::sendFrame(Image *image, const timeval ×tamp) { - if (!config.timestamp_on_capture) + if (!config.timestamp_on_capture) { monitor->TimestampImage(image, timestamp); + } Image *send_image = prepareImage(image); fputs("--" BOUNDARY "\r\n", stdout);