From b9709d0825f2195b7ef5e955639f2004ecae6d71 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 14 Nov 2022 21:11:26 -0600 Subject: [PATCH] Fix build without SDL_VIDEO_DRIVER_WAYLAND --- .../video/ffmpeg-renderers/pacer/waylandvsyncsource.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/streaming/video/ffmpeg-renderers/pacer/waylandvsyncsource.cpp b/app/streaming/video/ffmpeg-renderers/pacer/waylandvsyncsource.cpp index 85851dab..ce52e935 100644 --- a/app/streaming/video/ffmpeg-renderers/pacer/waylandvsyncsource.cpp +++ b/app/streaming/video/ffmpeg-renderers/pacer/waylandvsyncsource.cpp @@ -2,6 +2,10 @@ #include +#ifndef SDL_VIDEO_DRIVER_WAYLAND +#warning Unable to use WaylandVsyncSource without SDL support +#else + const struct wl_callback_listener WaylandVsyncSource::s_FrameListener = { .done = WaylandVsyncSource::frameDone, }; @@ -73,3 +77,5 @@ void WaylandVsyncSource::frameDone(void* data, struct wl_callback* oldCb, uint32 wl_surface_commit(me->m_Surface); wl_display_flush(me->m_Display); } + +#endif