From 7e87feaf15d5ab99473d13856bb247a0ed10e521 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 1 Dec 2017 05:09:05 +0100 Subject: vo_gpu: hwdec: remove redundant fields The testing_only field is not referenced anymore with vaglx removed and the previous commit dropping all uses. The ra_hwdec_driver.api field became unused with the previous commit, but all hwdec interop drivers still initialized it. Since this touches highly OS-specific code, build regressions are possible (plus the previous commit might break hw decoding at runtime). At least hwdec_cuda.c still used the .api field, other than initializing it. --- video/out/d3d11/hwdec_d3d11va.c | 1 - 1 file changed, 1 deletion(-) (limited to 'video/out/d3d11') diff --git a/video/out/d3d11/hwdec_d3d11va.c b/video/out/d3d11/hwdec_d3d11va.c index 7de24dde28..d6cbe31bdc 100644 --- a/video/out/d3d11/hwdec_d3d11va.c +++ b/video/out/d3d11/hwdec_d3d11va.c @@ -239,7 +239,6 @@ static void mapper_unmap(struct ra_hwdec_mapper *mapper) const struct ra_hwdec_driver ra_hwdec_d3d11va = { .name = "d3d11va", .priv_size = sizeof(struct priv_owner), - .api = HWDEC_D3D11VA, .imgfmts = {IMGFMT_D3D11VA, IMGFMT_D3D11NV12, 0}, .init = init, .uninit = uninit, -- cgit v1.2.3