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/7760>
This commit is contained in:
Nirbheek Chauhan 2024-05-27 18:43:33 +05:30 committed by Backport Bot
parent 892bea99cd
commit 7ae9cf8136

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)