diff options
author | wm4 <wm4@nowhere> | 2020-06-03 15:12:08 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-06-03 15:12:08 +0200 |
commit | 416d3f2c0071f22125a4e9e09475610961c0bec7 (patch) | |
tree | d8ed58abce9db37d6c6f5d8c47b9a639fa8407de | |
parent | 68ade4e5a5e760bb5a4b793ebfa98ca386786605 (diff) | |
download | mpv-416d3f2c0071f22125a4e9e09475610961c0bec7.tar.bz2 mpv-416d3f2c0071f22125a4e9e09475610961c0bec7.tar.xz |
vaapi: correct broken NULL check
Clearly, we want to check whether vaGetDisplayDRM() returned NULL.
out_display itself is already implied non-NULL.
Fixes: #7739
-rw-r--r-- | video/vaapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |