mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-04 00:36:36 +00:00
Avoid using window systems that SDL wasn't compiled to support
This commit is contained in:
parent
bb18519e44
commit
f1ee1eeb63
@ -44,7 +44,6 @@ macx {
|
|||||||
unix:!macx {
|
unix:!macx {
|
||||||
CONFIG += link_pkgconfig
|
CONFIG += link_pkgconfig
|
||||||
PKGCONFIG += openssl sdl2 opus
|
PKGCONFIG += openssl sdl2 opus
|
||||||
LIBS += -ldl
|
|
||||||
|
|
||||||
packagesExist(libavcodec) {
|
packagesExist(libavcodec) {
|
||||||
PKGCONFIG += libavcodec libavutil
|
PKGCONFIG += libavcodec libavutil
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
#include "vaapi.h"
|
#include "vaapi.h"
|
||||||
#include <streaming/streamutils.h>
|
#include <streaming/streamutils.h>
|
||||||
|
|
||||||
#include <dlfcn.h>
|
|
||||||
|
|
||||||
#include <SDL_syswm.h>
|
#include <SDL_syswm.h>
|
||||||
|
|
||||||
VAAPIRenderer::VAAPIRenderer()
|
VAAPIRenderer::VAAPIRenderer()
|
||||||
|
@ -2,6 +2,18 @@
|
|||||||
|
|
||||||
#include "renderer.h"
|
#include "renderer.h"
|
||||||
|
|
||||||
|
// Avoid X11 if SDL was built without it
|
||||||
|
#ifndef SDL_VIDEO_DRIVER_X11
|
||||||
|
#warning Unable to use libva-x11 without SDL support
|
||||||
|
#undef HAVE_LIBVA_X11
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Avoid Wayland if SDL was built without it
|
||||||
|
#ifndef SDL_VIDEO_DRIVER_WAYLAND
|
||||||
|
#warning Unable to use libva-wayland without SDL support
|
||||||
|
#undef HAVE_LIBVA_WAYLAND
|
||||||
|
#endif
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include <va/va.h>
|
#include <va/va.h>
|
||||||
#ifdef HAVE_LIBVA_X11
|
#ifdef HAVE_LIBVA_X11
|
||||||
|
Loading…
x
Reference in New Issue
Block a user