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

Skip to content
Commit 96ae963e authored by Guang Qiao's avatar Guang Qiao Committed by Gopalakrishnan Nallasamy
Browse files

Modify MediaRecorder stopping process to avoid blocking

1. Puller.setStopTimeUs() and Puller.stopSource() should not traverse
the looper thread because the thread may be blocked by MediaSource.read().
2. Encoder should always be released before stopping MediaSource because
MediaSource.stop() would be blocked if there are still some input
buffers being encoding.

Bug: 143046445
Bug: 148988986

Test: atest android.media.cts.MediaRecorderTest
Test: atest android.mediastress.cts.MediaRecorderStressTest
Test: atest android.hardware.cts.CameraTest

Change-Id: Ia576619dfb40c45fc7840d8febd1614d5ef09118
parent 95f8fd2c
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