Skip to content

Commit 660a2db

Browse files
committed
Make sure onExit is called if there is no audio stream
1 parent 02d7f8d commit 660a2db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gpuv/src/main/java/com/daasuu/gpuv/camerarecorder/GPUCameraRecorder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ public void onExit(final MediaEncoder encoder) {
230230
if (encoder instanceof MediaAudioEncoder && audioStopped) {
231231
audioExitReady = true;
232232
}
233-
if (videoExitReady && audioExitReady) {
233+
if (videoExitReady && (audioExitReady || mute)) {
234234
cameraRecordListener.onVideoFileReady();
235235
}
236236
}

0 commit comments

Comments
 (0)