mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 20:24:19 +00:00
Merge "omxvts: misplaced lock can cause race condition" into oc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
99c319f781
@@ -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 ==
|
||||
|
||||
Reference in New Issue
Block a user