Merge "omxvts: misplaced lock can cause race condition" into oc-mr1-dev

am: 99c319f781

Change-Id: I151636a841c11310880601db6533d21ab0d8f7c0
This commit is contained in:
Ram Mohan M
2017-10-01 23:12:16 +00:00
committed by android-build-merger

View File

@@ -126,8 +126,8 @@ struct CodecObserver : public IOmxObserver {
android::Vector<BufferInfo>* iBuffers = nullptr,
android::Vector<BufferInfo>* oBuffers = nullptr) {
int64_t finishBy = android::ALooper::GetNowUs() + timeoutUs;
android::Mutex::Autolock autoLock(msgLock);
for (;;) {
android::Mutex::Autolock autoLock(msgLock);
android::List<Message>::iterator it = msgQueue.begin();
while (it != msgQueue.end()) {
if (it->type ==