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

Commit 1bd22de1 authored by Guruprasad Gaonkar's avatar Guruprasad Gaonkar Committed by Steve Kondik
Browse files

stop recording from camcorder app in case of error.

This change makes sure that stopvideoRecording is called
for all error returns to the video recording app.

Change-Id: I70a942dab24e2665d76b3ff060e7ccf3d134e429
parent e19c1af8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1490,9 +1490,9 @@ public class VideoModule implements CameraModule,
    @Override
    public void onError(MediaRecorder mr, int what, int extra) {
        Log.e(TAG, "MediaRecorder error. what=" + what + ". extra=" + extra);
        stopVideoRecording();
        if (what == MediaRecorder.MEDIA_RECORDER_ERROR_UNKNOWN) {
            // We may have run out of space on the sdcard.
            stopVideoRecording();
            mActivity.updateStorageSpaceAndHint();
        }
    }