hwcontext_vaapi: Always include DRM hwcontext header
authorMark Thompson <sw@jkqxz.net>
Sun, 18 Mar 2018 18:34:38 +0000 (18:34 +0000)
committerMark Thompson <sw@jkqxz.net>
Sun, 18 Mar 2018 18:34:38 +0000 (18:34 +0000)
Fixes building with VAAPI but not libdrm, which was broken by
389f4c3e0d0a26a7d3d2696017384874cf5e93fa.  Just unconditionally include
the header, since it doesn't depend on libdrm being present.

libavutil/hwcontext_vaapi.c

index 99f76b9..3797005 100644 (file)
 #include "buffer.h"
 #include "common.h"
 #include "hwcontext.h"
+#include "hwcontext_drm.h"
 #include "hwcontext_internal.h"
 #include "hwcontext_vaapi.h"
 #include "mem.h"
 #include "pixdesc.h"
 #include "pixfmt.h"
 
-#if CONFIG_LIBDRM
-#   include "hwcontext_drm.h"
-#endif
 
 typedef struct VAAPIDevicePriv {
 #if HAVE_VAAPI_X11