diff --git a/media/omx/1.0/vts/functional/common/media_hidl_test_common.h b/media/omx/1.0/vts/functional/common/media_hidl_test_common.h index e23d781baa..de043b2c66 100644 --- a/media/omx/1.0/vts/functional/common/media_hidl_test_common.h +++ b/media/omx/1.0/vts/functional/common/media_hidl_test_common.h @@ -126,8 +126,8 @@ struct CodecObserver : public IOmxObserver { android::Vector* iBuffers = nullptr, android::Vector* oBuffers = nullptr) { int64_t finishBy = android::ALooper::GetNowUs() + timeoutUs; - android::Mutex::Autolock autoLock(msgLock); for (;;) { + android::Mutex::Autolock autoLock(msgLock); android::List::iterator it = msgQueue.begin(); while (it != msgQueue.end()) { if (it->type ==