diff --git a/ADApp/pluginSrc/NDPluginCodec.cpp b/ADApp/pluginSrc/NDPluginCodec.cpp index 1c88a8199..68fe6c688 100644 --- a/ADApp/pluginSrc/NDPluginCodec.cpp +++ b/ADApp/pluginSrc/NDPluginCodec.cpp @@ -807,10 +807,9 @@ void NDPluginCodec::processCallbacks(NDArray *pArray) } case NDCODEC_H264: { - //commenting out unlock for now - crashes when changing AVCodecContext parameters while acquiring - //unlock(); + unlock(); result = compressH264(pArray, &codecStatus, errorMessage); - //lock(); + lock(); break; }