diff --git a/video/out/vo_vaapi.c b/video/out/vo_vaapi.c index 37a3068081..84ca4a7a42 100644 --- a/video/out/vo_vaapi.c +++ b/video/out/vo_vaapi.c @@ -423,7 +423,6 @@ static void free_video_specific(struct priv *p) static bool alloc_swdec_surfaces(struct priv *p, int w, int h, int imgfmt) { - free_video_specific(p); for (int i = 0; i < MAX_OUTPUT_SURFACES; i++) { p->swdec_surfaces[i] = mp_image_pool_get(p->pool, IMGFMT_VAAPI, w, h); if (va_surface_alloc_imgfmt(p, p->swdec_surfaces[i], imgfmt) < 0)