Merge "Release virtual display before stopping projection"

This commit is contained in:
Treehugger Robot
2021-02-22 23:09:02 +00:00
committed by Gerrit Code Review

View File

@@ -187,12 +187,12 @@ public class ScreenMediaRecorder {
*/
void end() {
mMediaRecorder.stop();
mMediaProjection.stop();
mMediaRecorder.release();
mMediaRecorder = null;
mMediaProjection = null;
mInputSurface.release();
mVirtualDisplay.release();
mMediaProjection.stop();
mMediaRecorder = null;
mMediaProjection = null;
stopInternalAudioRecording();
Log.d(TAG, "end recording");