mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-28 22:24:16 +00:00
[mod_opusfile] not draining before destroying encoder causes loss on encoded file
This commit is contained in:
1 parent
33040f2a43
commit
d03100661e
1 file changed
+1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user