1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-16 12:17:12 +00:00

vaapi: correct broken NULL check

Clearly, we want to check whether vaGetDisplayDRM() returned NULL.
out_display itself is already implied non-NULL.

Fixes: #7739
This commit is contained in:
wm4 2020-06-03 15:12:08 +02:00
parent 68ade4e5a5
commit 416d3f2c00

View File

@ -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;
}