From b2afcc99f5324e8db71a3795af3b242f668d2f6f Mon Sep 17 00:00:00 2001 From: NamedKitten Date: Mon, 26 Nov 2018 18:41:18 +0000 Subject: [PATCH] [Backend] Make backend compile properly. --- src/MpvPlayerBackend.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/MpvPlayerBackend.h b/src/MpvPlayerBackend.h index f397f0c..ee59b92 100644 --- a/src/MpvPlayerBackend.h +++ b/src/MpvPlayerBackend.h @@ -1,6 +1,3 @@ -#ifndef MpvPlayerBackend_H -#define MpvPlayerBackend_H - #include #include @@ -8,7 +5,9 @@ #define DISABLE_MpvPlayerBackend #endif -#ifndef DISABLE_MpvPlayerBackend +#ifndef MpvPlayerBackend_H +#define MpvPlayerBackend_H + #include @@ -31,7 +30,9 @@ class MpvPlayerBackend Q_OBJECT mpv_handle* mpv; +#ifndef DISABLE_MpvPlayerBackend mpv_render_context* mpv_gl; +#endif bool onTop = false; QString totalDurationString; @@ -93,4 +94,3 @@ private: }; #endif -#endif