Skip to content

Commit

Permalink
Use dl handle for libva's vaTerminate rather than actual function
Browse files Browse the repository at this point in the history
libva is supposed to be optional.
  • Loading branch information
chewi committed Dec 31, 2023
1 parent a6ffeb4 commit 5982888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/linux/vaapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 5982888

Please sign in to comment.