Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 5c8cbeda authored by chenguolin's avatar chenguolin Committed by Guolin Chen
Browse files

camera:fix wait request timeout in switching camera



This issue happened from two camera apps switch each other which is based on api1.In apil need do the syncwithDevice to wait the mLatestRequestsignal.In the switch case, exist prepareHalRequests return an error flags, then exit the request loop without signal mLatestRequestsignal.So it caused the app which use api1 syncwithDevice timeout.So resolution is add codes to signal mLatestRequestsignal during the last requstloop exit.It should not block the next app start.

Bug:312989788
Test: Stress test for open/close camera from different camera app

Change-Id: Iea45693fe654532f0174f50f87bc114ad2c2321b
Signed-off-by: default avatarchenguolin <chenguolin@xiaomi.corp-partner.google.com>
parent fdc86e2a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment