mirror of https://github.com/mpv-player/mpv
hwdec_ios: fix crash after mapper_init failure
This commit is contained in:
parent
8f1c40f702
commit
ed7bc3a5f3
|
@ -253,8 +253,10 @@ static void mapper_uninit(struct ra_hwdec_mapper *mapper)
|
|||
struct priv *p = mapper->priv;
|
||||
|
||||
CVPixelBufferRelease(p->pbuf);
|
||||
CFRelease(p->gl_texture_cache);
|
||||
p->gl_texture_cache = NULL;
|
||||
if (p->gl_texture_cache) {
|
||||
CFRelease(p->gl_texture_cache);
|
||||
p->gl_texture_cache = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
const struct ra_hwdec_driver ra_hwdec_videotoolbox = {
|
||||
|
|
Loading…
Reference in New Issue