va: Fix libdrm include

The libdrm/ prefix should not be used, it will be provided by the
pkgconfig file. Also HAVE_LIBDRM is necessary.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6932>
This commit is contained in:
Nirbheek Chauhan 2024-05-27 18:43:33 +05:30 committed by GStreamer Marge Bot
parent 236d6714ec
commit deaa0aef79

View file

@ -25,8 +25,8 @@
#include <gst/video/video.h>
#include <va/va.h>
#ifndef G_OS_WIN32
#include <libdrm/drm_fourcc.h>
#ifdef HAVE_LIBDRM
#include <drm_fourcc.h>
#else
/**
* DRM_FORMAT_INVALID: (skip) (attributes doc.skip=true)