Skip to content

Commit c93d6ae

Browse files
committed
set recording to null after close
1 parent 2fc150e commit c93d6ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/src/main/java/app/grapheneos/camera/capturer/VideoCapturer.kt

+1
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ class VideoCapturer(private val mActivity: MainActivity) {
349349
fun stopRecording() {
350350
recording?.stop()
351351
recording?.close()
352+
recording = null
352353
}
353354

354355
companion object {

0 commit comments

Comments
 (0)