[mod_opusfile] not draining before destroying encoder causes loss on encoded file

This commit is contained in:
bmlkc 2021-07-09 20:44:43 +02:00
parent 33040f2a43
commit d03100661e
1 changed files with 1 additions and 0 deletions

View File

@ -316,6 +316,7 @@ static switch_status_t switch_opusfile_close(switch_file_handle_t *handle)
}
#ifdef HAVE_OPUSFILE_ENCODE
if (context->enc) {
ope_encoder_drain(context->enc);
ope_encoder_destroy(context->enc);
}
if (context->comments) {