From 303178e6451da7072aa71ce5e3cbffc233d6dbd1 Mon Sep 17 00:00:00 2001 From: LaserEyess Date: Wed, 16 Nov 2022 14:44:12 -0500 Subject: wlbuf_pool.h: add headers for forward declarations This was previously implicitly included by the order of headers in vo_dmabuf_wayland.c, but it is better to make it an explicit and reorder the headers properly. --- video/out/vo_dmabuf_wayland.c | 2 +- video/out/wlbuf_pool.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'video/out') diff --git a/video/out/vo_dmabuf_wayland.c b/video/out/vo_dmabuf_wayland.c index ad3202db63..24ced832ab 100644 --- a/video/out/vo_dmabuf_wayland.c +++ b/video/out/vo_dmabuf_wayland.c @@ -40,9 +40,9 @@ #endif #include "present_sync.h" #include "wayland_common.h" +#include "wlbuf_pool.h" #include "generated/wayland/linux-dmabuf-unstable-v1.h" #include "generated/wayland/viewporter.h" -#include "wlbuf_pool.h" struct priv { struct mp_log *log; diff --git a/video/out/wlbuf_pool.h b/video/out/wlbuf_pool.h index cf86f523d6..8e0f03640b 100644 --- a/video/out/wlbuf_pool.h +++ b/video/out/wlbuf_pool.h @@ -15,6 +15,9 @@ * License along with mpv. If not, see . */ +#include "wayland_common.h" +#include "generated/wayland/linux-dmabuf-unstable-v1.h" + struct wlbuf_pool_entry; typedef uintptr_t (*wlbuf_pool_key_provider)(struct mp_image *src); -- cgit v1.2.3