From 1b08c6d00ff16b385ab7a1ce103c78635c58bb84 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 22 Oct 2024 18:32:31 -0400 Subject: [PATCH] Init last_fps_update in stream constructor --- src/zm_stream.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/zm_stream.h b/src/zm_stream.h index c668c0bcbb..b647b0dca1 100644 --- a/src/zm_stream.h +++ b/src/zm_stream.h @@ -202,6 +202,7 @@ class StreamBase { memset(&rem_sock_path, 0, sizeof(rem_sock_path)); memset(&rem_addr, 0, sizeof(rem_addr)); memset(&sock_path_lock, 0, sizeof(sock_path_lock)); + last_fps_update = std::chrono::steady_clock::now(); vid_stream = nullptr; msg = { 0, { 0 } };