From 416d3f2c0071f22125a4e9e09475610961c0bec7 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 3 Jun 2020 15:12:08 +0200 Subject: vaapi: correct broken NULL check Clearly, we want to check whether vaGetDisplayDRM() returned NULL. out_display itself is already implied non-NULL. Fixes: #7739 --- video/vaapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video') diff --git a/video/vaapi.c b/video/vaapi.c index bee24c1e72..08248a7388 100644 --- a/video/vaapi.c +++ b/video/vaapi.c @@ -226,7 +226,7 @@ static void drm_create(VADisplay **out_display, void **out_native_ctx, struct va_native_display_drm *ctx = talloc_ptrtype(NULL, ctx); ctx->drm_fd = drm_fd; *out_display = vaGetDisplayDRM(drm_fd); - if (out_display) { + if (*out_display) { *out_native_ctx = ctx; return; } -- cgit v1.2.3