diff options
-rw-r--r-- | video/dxva2.c | 8 | ||||
-rw-r--r-- | video/dxva2.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/video/dxva2.c b/video/dxva2.c index e47f84e8a3..388db67069 100644 --- a/video/dxva2.c +++ b/video/dxva2.c @@ -28,13 +28,13 @@ struct dxva2_surface { HMODULE dxva2lib; IDirectXVideoDecoder *decoder; - LPDIRECT3DSURFACE9 surface; + IDirect3DSurface9 *surface; }; -LPDIRECT3DSURFACE9 d3d9_surface_in_mp_image(struct mp_image *mpi) +IDirect3DSurface9 *d3d9_surface_in_mp_image(struct mp_image *mpi) { return mpi && mpi->imgfmt == IMGFMT_DXVA2 ? - (LPDIRECT3DSURFACE9)mpi->planes[3] : NULL; + (IDirect3DSurface9 *)mpi->planes[3] : NULL; } static void dxva2_release_img(void *arg) @@ -56,7 +56,7 @@ static void dxva2_release_img(void *arg) } struct mp_image *dxva2_new_ref(IDirectXVideoDecoder *decoder, - LPDIRECT3DSURFACE9 d3d9_surface, int w, int h) + IDirect3DSurface9 *d3d9_surface, int w, int h) { if (!decoder || !d3d9_surface) return NULL; diff --git a/video/dxva2.h b/video/dxva2.h index b52767da44..1f2e4a4071 100644 --- a/video/dxva2.h +++ b/video/dxva2.h @@ -24,9 +24,9 @@ struct mp_image; struct mp_image_pool; -LPDIRECT3DSURFACE9 d3d9_surface_in_mp_image(struct mp_image *mpi); +IDirect3DSurface9 *d3d9_surface_in_mp_image(struct mp_image *mpi); struct mp_image *dxva2_new_ref(IDirectXVideoDecoder *decoder, - LPDIRECT3DSURFACE9 d3d9_surface, int w, int h); + IDirect3DSurface9 *d3d9_surface, int w, int h); #endif |