[vlc-commits] codec: dxva: Pretend we're always building on desktop

Hugo Beauzée-Luyssen git at videolan.org
Fri Jun 2 17:58:46 CEST 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Jun  2 17:29:31 2017 +0200| [4a746666d08d2b368f794fda996a2ec5ef901512] | committer: Hugo Beauzée-Luyssen

codec: dxva: Pretend we're always building on desktop

So that we can have the GUID declared

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4a746666d08d2b368f794fda996a2ec5ef901512
---

 modules/codec/avcodec/directx_va.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/codec/avcodec/directx_va.c b/modules/codec/avcodec/directx_va.c
index d114feac79..63307a6ae5 100644
--- a/modules/codec/avcodec/directx_va.c
+++ b/modules/codec/avcodec/directx_va.c
@@ -52,6 +52,12 @@ static const int PROF_HEVC_MAIN[]    = { FF_PROFILE_HEVC_MAIN, 0 };
 static const int PROF_HEVC_MAIN10[]  = { FF_PROFILE_HEVC_MAIN,
                                          FF_PROFILE_HEVC_MAIN_10, 0 };
 
+#include <winapifamily.h>
+#if defined(WINAPI_FAMILY)
+# undef WINAPI_FAMILY
+#endif
+#define WINAPI_FAMILY WINAPI_PARTITION_DESKTOP
+
 #include <d3d9.h>
 #include <dxva2api.h>
 



More information about the vlc-commits mailing list