ref: 164cbb5995991866f68692ebbe77d98304a707c9
parent: fd90607675ada5d000cb19d63a567de2b1f0e38b
author: Jean-Marc Valin <jmvalin@jmvalin.ca>
date: Thu Feb 8 12:23:31 EST 2018
Ignore close errors in ope_encoder_destroy()
--- a/src/opusenc.c
+++ b/src/opusenc.c
@@ -775,13 +775,8 @@
while (stream != NULL) {
EncStream *tmp = stream;
stream = stream->next;
- if (tmp->close_at_end) {
- int ret = enc->callbacks.close(tmp->user_data);
- if (ret) {
- enc->unrecoverable = OPE_CLOSE_FAIL;
- return;
- }
- }
+ /* Ignore any error on close. */
+ if (tmp->close_at_end) enc->callbacks.close(tmp->user_data);
stream_destroy(tmp);
}
if (enc->chaining_keyframe) free(enc->chaining_keyframe);