From 195f9fc403b52f676fa1ab9b48b181c5d8cadc82 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 28 May 2021 11:38:48 -0400 Subject: [PATCH] simplify test for being decoded. timestamping needs to be done as well --- src/zm_monitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zm_monitor.cpp b/src/zm_monitor.cpp index 795cd3e94..4f2a75770 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -1855,7 +1855,7 @@ bool Monitor::Analyse() { /* try to stay behind the decoder. */ if (decoding_enabled) { - while ((!snap->image or deinterlacing_value) and !snap->decoded and !zm_terminate and !analysis_thread->Stopped()) { + while (!snap->decoded and !zm_terminate and !analysis_thread->Stopped()) { // Need to wait for the decoder thread. Debug(1, "Waiting for decode"); packet_lock->wait();