mirror of
https://github.com/mpv-player/mpv
synced 2025-02-01 04:31:39 +00:00
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;
|
struct priv *p = mapper->priv;
|
||||||
|
|
||||||
CVPixelBufferRelease(p->pbuf);
|
CVPixelBufferRelease(p->pbuf);
|
||||||
CFRelease(p->gl_texture_cache);
|
if (p->gl_texture_cache) {
|
||||||
p->gl_texture_cache = NULL;
|
CFRelease(p->gl_texture_cache);
|
||||||
|
p->gl_texture_cache = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const struct ra_hwdec_driver ra_hwdec_videotoolbox = {
|
const struct ra_hwdec_driver ra_hwdec_videotoolbox = {
|
||||||
|
Loading…
Reference in New Issue
Block a user