From: bmlkc Date: Fri, 9 Jul 2021 18:44:43 +0000 (+0200) Subject: [mod_opusfile] not draining before destroying encoder causes loss on encoded file X-Git-Tag: v1.10.8^2~106^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d03100661e0d73fad1986de5ed2ab1a5c8d520ef;p=thirdparty%2Ffreeswitch.git [mod_opusfile] not draining before destroying encoder causes loss on encoded file --- diff --git a/src/mod/formats/mod_opusfile/mod_opusfile.c b/src/mod/formats/mod_opusfile/mod_opusfile.c index 25246a7ced..ae6eebed15 100644 --- a/src/mod/formats/mod_opusfile/mod_opusfile.c +++ b/src/mod/formats/mod_opusfile/mod_opusfile.c @@ -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) {