[vlc-devel] [PATCH 1/6] configure: fix the dxva2 deinterlacing API detection
Steve Lhomme
robux4 at videolabs.io
Sun Jul 2 10:09:45 CEST 2017
# Conflicts:
# configure.ac
---
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])])
])
])
--
2.13.0
More information about the vlc-devel
mailing list