mirror of https://git.ffmpeg.org/ffmpeg.git
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."
This commit is contained in:
parent
2770e16d70
commit
6fd58eba1c
|
@ -628,8 +628,10 @@ static void videotoolbox_default_free(AVCodecContext *avctx)
|
||||||
if (videotoolbox->cm_fmt_desc)
|
if (videotoolbox->cm_fmt_desc)
|
||||||
CFRelease(videotoolbox->cm_fmt_desc);
|
CFRelease(videotoolbox->cm_fmt_desc);
|
||||||
|
|
||||||
if (videotoolbox->session)
|
if (videotoolbox->session) {
|
||||||
VTDecompressionSessionInvalidate(videotoolbox->session);
|
VTDecompressionSessionInvalidate(videotoolbox->session);
|
||||||
|
CFRelease(videotoolbox->session);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue