mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
[mod_opusfile] not draining before destroying encoder causes loss on encoded file
This commit is contained in:
@@ -316,6 +316,7 @@ static switch_status_t switch_opusfile_close(switch_file_handle_t *handle)
|
|||||||
}
|
}
|
||||||
#ifdef HAVE_OPUSFILE_ENCODE
|
#ifdef HAVE_OPUSFILE_ENCODE
|
||||||
if (context->enc) {
|
if (context->enc) {
|
||||||
|
ope_encoder_drain(context->enc);
|
||||||
ope_encoder_destroy(context->enc);
|
ope_encoder_destroy(context->enc);
|
||||||
}
|
}
|
||||||
if (context->comments) {
|
if (context->comments) {
|
||||||
|
Reference in New Issue
Block a user