Merge "Release virtual display before stopping projection"
This commit is contained in:
@@ -187,12 +187,12 @@ public class ScreenMediaRecorder {
|
|||||||
*/
|
*/
|
||||||
void end() {
|
void end() {
|
||||||
mMediaRecorder.stop();
|
mMediaRecorder.stop();
|
||||||
mMediaProjection.stop();
|
|
||||||
mMediaRecorder.release();
|
mMediaRecorder.release();
|
||||||
mMediaRecorder = null;
|
|
||||||
mMediaProjection = null;
|
|
||||||
mInputSurface.release();
|
mInputSurface.release();
|
||||||
mVirtualDisplay.release();
|
mVirtualDisplay.release();
|
||||||
|
mMediaProjection.stop();
|
||||||
|
mMediaRecorder = null;
|
||||||
|
mMediaProjection = null;
|
||||||
stopInternalAudioRecording();
|
stopInternalAudioRecording();
|
||||||
|
|
||||||
Log.d(TAG, "end recording");
|
Log.d(TAG, "end recording");
|
||||||
|
|||||||
Reference in New Issue
Block a user