Merge "Release virtual display before stopping projection" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
d29e65b87a
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user