[vlc-commits] configure: enhance the D3D9/DxVA2 filters functions detection
Steve Lhomme
git at videolan.org
Sun Jul 2 14:32:00 CEST 2017
vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Fri Jun 16 11:06:55 2017 +0200| [d0d6460844c260ebb1f569501381c01c2252b624] | committer: Jean-Baptiste Kempf
configure: enhance the D3D9/DxVA2 filters functions detection
Notably, check IDirectXVideoProcessorService_GetVideoProcessorDeviceGuids
presence.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d0d6460844c260ebb1f569501381c01c2252b624
---
configure.ac | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/configure.ac b/configure.ac
index a9c37c4a2f..8ef7bbcd96 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3293,13 +3293,18 @@ AS_IF([test "${enable_directx}" != "no"], [
VLC_ADD_PLUGIN([direct3d9])
AC_CHECK_HEADERS(d3dx9effect.h)
- AC_CHECK_FUNCS([IDirectXVideoProcessorService_GetVideoProcessorDeviceGuids],
- [
+ AC_PREPROC_IFELSE([AC_LANG_PROGRAM(
+ [[#define COBJMACROS
+ #include <d3d9.h>
+ #include <dxva2api.h>
+ #ifndef IDirectXVideoProcessorService_GetVideoProcessorDeviceGuids
+ # error dxva2 too old
+ #endif
+ ]],[[;]])
+ ],[
VLC_ADD_PLUGIN([direct3d9_deinterlace direct3d9_adjust])
],
- [AC_MSG_WARN([Could not find required IDirectXVideoDecoder in dxva2api.h])],
- [#include <d3d9.h>
- #include <dxva2api.h>])
+ [AC_MSG_WARN([Could not find required IDirectXVideoDecoder in dxva2api.h])])
])
])
More information about the vlc-commits
mailing list