Skip to content

Commit

Permalink
Merge pull request #71 from eschmar/bugfix/exit-on-muted-audio
Browse files Browse the repository at this point in the history
Make sure onExit is called if there is no audio stream
  • Loading branch information
MasayukiSuda authored Oct 30, 2020
2 parents 02d7f8d + 660a2db commit 8174141
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ public void onExit(final MediaEncoder encoder) {
if (encoder instanceof MediaAudioEncoder && audioStopped) {
audioExitReady = true;
}
if (videoExitReady && audioExitReady) {
if (videoExitReady && (audioExitReady || mute)) {
cameraRecordListener.onVideoFileReady();
}
}
Expand Down

0 comments on commit 8174141

Please sign in to comment.