From 1a6dc18a09d9545e57520e058ad9fbd82baca5be 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 8118be19f..c1fadd6e1 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();