Commit 6fd58eba authored by Clément Bœsch's avatar Clément Bœsch

lavc/videotoolbox: CFRelease() session

"When you are done with a decompression session you created, call
VTDecompressionSessionInvalidate to tear it down and then CFRelease to
release your object reference."
parent 2770e16d
......@@ -628,8 +628,10 @@ static void videotoolbox_default_free(AVCodecContext *avctx)
if (videotoolbox->cm_fmt_desc)
CFRelease(videotoolbox->cm_fmt_desc);
if (videotoolbox->session)
if (videotoolbox->session) {
VTDecompressionSessionInvalidate(videotoolbox->session);
CFRelease(videotoolbox->session);
}
}
}
......
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