Skip to content

Commit

Permalink
[run instrumentation] Change where stoppingVideo is called
Browse files Browse the repository at this point in the history
  • Loading branch information
azaat committed Mar 24, 2021
1 parent 50ca36a commit 8a5cbf6
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -963,6 +963,7 @@ private void configureTransform() {
}

private void stopVideoPostPrepare(boolean from_restart) {
applicationInterface.stoppingVideo();
Log.d(TAG, "Stopping video post prepare");

if( video_recorder != null ) { // check again, just to be safe
Expand Down Expand Up @@ -1004,7 +1005,7 @@ private void stopVideoPostPrepare(boolean from_restart) {

@TargetApi(Build.VERSION_CODES.LOLLIPOP)
public void stopVideo(boolean from_restart) {
applicationInterface.stoppingVideo();
camera_controller.closeVideoRecordingSession();
if( MyDebug.LOG )
Log.d(TAG, "stopVideo()");

Expand Down Expand Up @@ -1032,8 +1033,6 @@ public void stopVideo(boolean from_restart) {
}


camera_controller.closeVideoRecordingSession();

/*
If camera2api is not used, we should stop video immediately. Otherwise it is done in callback
after captureSession is closed
Expand Down

0 comments on commit 8a5cbf6

Please sign in to comment.