simplify test for being decoded. timestamping needs to be done as well

This commit is contained in:
Isaac Connor 2021-05-28 11:38:48 -04:00
parent 25bce3b8ca
commit 1a6dc18a09
1 changed files with 1 additions and 1 deletions

View File

@ -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();