<div dir="ltr">From 28eee4d55bfca3f6be5250634d5a1408816020d3 Mon Sep 17 00:00:00 2001<br>From: Ponsanthini <<a href="mailto:ponsanthini.arunachalam@muticorewareinc.com">ponsanthini.arunachalam@muticorewareinc.com</a>><br>Date: Thu, 15 Feb 2024 15:12:14 +0530<br>Subject: [PATCH] Fix concurrency issue in lookahead<br><br>---<br> source/encoder/slicetype.cpp | 2 +-<br> 1 file changed, 1 insertion(+), 1 deletion(-)<br><br>diff --git a/source/encoder/slicetype.cpp b/source/encoder/slicetype.cpp<br>index caf4cbf..61b5fb6 100644<br>--- a/source/encoder/slicetype.cpp<br>+++ b/source/encoder/slicetype.cpp<br>@@ -1263,6 +1263,7 @@ void Lookahead::findJob(int /*workerThreadID*/)<br>     ProfileScopeEvent(slicetypeDecideEV);<br> <br>     slicetypeDecide();<br>+    m_sliceTypeBusy = false;<br> <br>     m_inputLock.acquire();<br>     if (m_outputSignalRequired)<br>@@ -1270,7 +1271,6 @@ void Lookahead::findJob(int /*workerThreadID*/)<br>         m_outputSignal.trigger();<br>         m_outputSignalRequired = false;<br>     }<br>-    m_sliceTypeBusy = false;<br>     m_inputLock.release();<br> }<br> <br>-- <br>1.8.3.1<br><br></div>