Ignore close errors in ope_encoder_destroy()

parent fd906076
......@@ -775,13 +775,8 @@ void ope_encoder_destroy(OggOpusEnc *enc) {
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);
......
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