Fixes a crash on destroy with the pull API

parent bb30efe9
Pipeline #496 passed with stage
......@@ -847,7 +847,7 @@ void ope_encoder_destroy(OggOpusEnc *enc) {
EncStream *tmp = stream;
stream = stream->next;
/* Ignore any error on close. */
if (tmp->close_at_end) enc->callbacks.close(tmp->user_data);
if (tmp->close_at_end && !enc->pull_api) 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