timestamp image before scaling. Fixes lack of scaling when TIMESTAMP_ON_CAPTURE

is off
This commit is contained in:
Isaac Connor 2021-11-19 11:59:19 -05:00
parent a577c3fe79
commit 15b01c2730
1 changed files with 2 additions and 1 deletions

View File

@ -378,8 +378,9 @@ bool MonitorStream::sendFrame(const char *filepath, const timeval &timestamp) {
} // end bool MonitorStream::sendFrame(const char *filepath, struct timeval *timestamp) } // end bool MonitorStream::sendFrame(const char *filepath, struct timeval *timestamp)
bool MonitorStream::sendFrame(Image *image, const timeval &timestamp) { bool MonitorStream::sendFrame(Image *image, const timeval &timestamp) {
if (!config.timestamp_on_capture) if (!config.timestamp_on_capture) {
monitor->TimestampImage(image, timestamp); monitor->TimestampImage(image, timestamp);
}
Image *send_image = prepareImage(image); Image *send_image = prepareImage(image);
fputs("--" BOUNDARY "\r\n", stdout); fputs("--" BOUNDARY "\r\n", stdout);