mirror of
https://github.com/mpv-player/mpv
synced 2025-01-12 01:49:33 +00:00
vo_vaapi: fix a crash on the init error handling path
No X display or libva can't be initialized -> crash.
This commit is contained in:
parent
73121dbcc1
commit
d88aca6fb2
@ -129,7 +129,8 @@ static void free_video_specific(struct priv *p)
|
||||
for (int n = 0; n < MAX_OUTPUT_SURFACES; n++)
|
||||
mp_image_unrefp(&p->swdec_surfaces[n]);
|
||||
|
||||
mp_image_pool_clear(p->pool);
|
||||
if (p->pool)
|
||||
mp_image_pool_clear(p->pool);
|
||||
}
|
||||
|
||||
static bool alloc_swdec_surfaces(struct priv *p, int w, int h, int imgfmt)
|
||||
|
Loading…
Reference in New Issue
Block a user