Use dl handle for libva's vaTerminate rather than actual function (#1955)

This commit is contained in:
James Le Cuirot 2023-12-31 20:10:48 +00:00 committed by GitHub
parent 8efc15b58f
commit d97f724e3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -520,7 +520,7 @@ namespace va {
auto hwctx = (AVVAAPIDeviceContext *) ctx->hwctx;
auto priv = (VAAPIDevicePriv *) ctx->user_opaque;
vaTerminate(hwctx->display);
terminate(hwctx->display);
close(priv->drm_fd);
av_freep(&priv);
}