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

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

StagefrightRecorder:close next filedescriptor

Bug: 127693962

StagefrightRecorder receives next file descriptor in it's function setNextOutputFile() from
MediaRecorder.setNextOutputFile(). It duplicates the received file descriptor, but doesn't close
the duplicated one when done.

This CL fixes that issue by not duplicating it in StagefrighRecorder as it has to just pass it on
to Mpeg4Writer.  Mpeg4Writer duplicates received file descriptor.  It frees them during release.

Test: 	cts-tradefed run cts-dev -m CtsMediaTestCases --compatibility:module-arg
	CtsMediaTestCases:include-annotation:android.platform.test.annotations.RequiresDevice

Change-Id: I24fc12bd957a2abdb8785625261c95da62952736
parent d77619a5
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