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:
parent
68ade4e5a5
commit
416d3f2c00
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user