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

Skip to content
Commit 44b042ca authored by Pawin Vongmasa's avatar Pawin Vongmasa
Browse files

Abort read() after CameraSource has stopped

Before this change, CameraSource::read() may loop forever if
- setStopTimeUs() is called when there are no pending unprocessed
frames; and
- New frames that arrive after setStopTimeUs() was called have timestamps
greater than what was passed to setStopTimeUs().

This change makes read() return ERROR_END_OF_STREAM in this situation.

Test: cts-tradefed run cts -m CtsMediaTestCases \
-t android.media.cts.MediaRandomTest#testRecorderRandomAction

Test: cts-tradefed run cts -m CtsCameraTestCases \
-t android.hardware.camera2.cts.FastBasicsTest

Bug: 111661316
Change-Id: I4db4011849dbf9cc4b31e7f142017a650e4d0ed7
parent 46ba387b
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