va: Fix libdrm include
authorNirbheek Chauhan <nirbheek@centricular.com>
Mon, 27 May 2024 13:13:33 +0000 (18:43 +0530)
committerBackport Bot <gitlab-backport-bot@gstreamer-foundation.org>
Sun, 27 Oct 2024 12:29:08 +0000 (12:29 +0000)
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>

subprojects/gst-plugins-bad/gst-libs/gst/va/gstvavideoformat.h

index 43b61352bf67e30e26a2def870d4f13431333df9..327478a374ca88b6917f83f38339a356e1989561 100644 (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)