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

Skip to content
Commit 14c10ebb authored by Gopalakrishnan Nallasamy's avatar Gopalakrishnan Nallasamy
Browse files

StagefrighRecorder:check mWriter before using fd

ftruncate(fd) would be useless if mWriter was NULL already.
Hence moved mWriter nullptr check before ftruncate(fd).

Bug: 128366317

Test: atest CtsMediaTestCases:android.media.cts.MediaRecorderTest

Change-Id: I46b8c4718bc8a90712b7ec0b54d8239106106018
parent baf2d2c6
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