Merge pull request #1259 from bmlkc/mod-opusfile-drain-before-closing-write

[mod_opusfile] add opc_encoder_drain before destroying handle
This commit is contained in:
Andrey Volk 2021-12-01 12:38:21 +03:00 committed by GitHub
commit 99d9c3bd65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -363,6 +363,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) {