Ignore close errors in ope_encoder_destroy()

parent fd906076
...@@ -775,13 +775,8 @@ void ope_encoder_destroy(OggOpusEnc *enc) { ...@@ -775,13 +775,8 @@ void ope_encoder_destroy(OggOpusEnc *enc) {
while (stream != NULL) { while (stream != NULL) {
EncStream *tmp = stream; EncStream *tmp = stream;
stream = stream->next; stream = stream->next;
if (tmp->close_at_end) { /* Ignore any error on close. */
int ret = enc->callbacks.close(tmp->user_data); if (tmp->close_at_end) enc->callbacks.close(tmp->user_data);
if (ret) {
enc->unrecoverable = OPE_CLOSE_FAIL;
return;
}
}
stream_destroy(tmp); stream_destroy(tmp);
} }
if (enc->chaining_keyframe) free(enc->chaining_keyframe); if (enc->chaining_keyframe) free(enc->chaining_keyframe);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment