summaryrefslogtreecommitdiffstats
path: root/video/hwdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/hwdec.c')
-rw-r--r--video/hwdec.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/video/hwdec.c b/video/hwdec.c
index 31df1522ce..04f7d46d9a 100644
--- a/video/hwdec.c
+++ b/video/hwdec.c
@@ -107,14 +107,19 @@ char *hwdec_devices_get_names(struct mp_hwdec_devices *devs)
return res;
}
-#if HAVE_D3D_HWACCEL
-extern const struct hwcontext_fns hwcontext_fns_d3d11;
-#endif
-
static const struct hwcontext_fns *const hwcontext_fns[] = {
#if HAVE_D3D_HWACCEL
&hwcontext_fns_d3d11,
#endif
+#if HAVE_D3D9_HWACCEL
+ &hwcontext_fns_dxva2,
+#endif
+#if HAVE_VAAPI
+ &hwcontext_fns_vaapi,
+#endif
+#if HAVE_VDPAU
+ &hwcontext_fns_vdpau,
+#endif
NULL,
};