Merge "Release virtual display before stopping projection" into sc-dev

This commit is contained in:
Beth Thibodeau
2021-02-10 23:05:32 +00:00
committed by Android (Google) Code Review

View File

@@ -277,12 +277,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");