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
@@ -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) {