Merge "HDMI: Guard mEarcLocalDevice.mEarcStatus with mLock"
This commit is contained in:
@@ -4714,7 +4714,9 @@ public class HdmiControlService extends SystemService {
|
||||
private int getEarcStatus() {
|
||||
assertRunOnServiceThread();
|
||||
if (mEarcLocalDevice != null) {
|
||||
return mEarcLocalDevice.mEarcStatus;
|
||||
synchronized (mLock) {
|
||||
return mEarcLocalDevice.mEarcStatus;
|
||||
}
|
||||
}
|
||||
return HDMI_EARC_STATUS_UNKNOWN;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user