From 0754cbc83eb030ed3c0f0666e8b7c2481631e513 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 8 Jun 2017 21:16:11 +0200 Subject: d3d: add support for new libavcodec hwaccel API Unfortunately quite a mess, in particular due to the need to have some compatibility with the old API. (The old API will be supported only in short term.) --- video/out/opengl/hwdec_dxva2gldx.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'video/out/opengl/hwdec_dxva2gldx.c') diff --git a/video/out/opengl/hwdec_dxva2gldx.c b/video/out/opengl/hwdec_dxva2gldx.c index eb44f2b38b..7e0ea88b51 100644 --- a/video/out/opengl/hwdec_dxva2gldx.c +++ b/video/out/opengl/hwdec_dxva2gldx.c @@ -22,6 +22,7 @@ #include "osdep/windows_utils.h" #include "hwdec.h" #include "video/hwdec.h" +#include "video/decode/d3d.h" // for WGL_ACCESS_READ_ONLY_NV #include @@ -104,6 +105,7 @@ static int create(struct gl_hwdec *hw) .type = HWDEC_DXVA2, .driver_name = hw->driver->name, .ctx = (IDirect3DDevice9 *)p->device, + .av_device_ref = d3d9_wrap_device_ref((IDirect3DDevice9 *)p->device), }; hwdec_devices_add(hw->devs, &p->hwctx); return 0; -- cgit v1.2.3