From 7ff6cf807cd4321cf981b310a1daf7469c38f7fd Mon Sep 17 00:00:00 2001 From: llyyr Date: Tue, 28 May 2024 19:36:59 +0530 Subject: [PATCH] vo_vaapi: remove redundant function call we already free video specifics when reconfiguring --- video/out/vo_vaapi.c | 1 - 1 file changed, 1 deletion(-) 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)