1
0
Fork 0

[Backend] Make backend compile properly.

This commit is contained in:
NamedKitten 2018-11-26 18:41:18 +00:00
parent 6b318a724c
commit b2afcc99f5

View file

@ -1,6 +1,3 @@
#ifndef MpvPlayerBackend_H
#define MpvPlayerBackend_H
#include <mpv/client.h> #include <mpv/client.h>
#include <mpv/qthelper.hpp> #include <mpv/qthelper.hpp>
@ -8,7 +5,9 @@
#define DISABLE_MpvPlayerBackend #define DISABLE_MpvPlayerBackend
#endif #endif
#ifndef DISABLE_MpvPlayerBackend #ifndef MpvPlayerBackend_H
#define MpvPlayerBackend_H
#include <mpv/render_gl.h> #include <mpv/render_gl.h>
@ -31,7 +30,9 @@ class MpvPlayerBackend
Q_OBJECT Q_OBJECT
mpv_handle* mpv; mpv_handle* mpv;
#ifndef DISABLE_MpvPlayerBackend
mpv_render_context* mpv_gl; mpv_render_context* mpv_gl;
#endif
bool onTop = false; bool onTop = false;
QString totalDurationString; QString totalDurationString;
@ -93,4 +94,3 @@ private:
}; };
#endif #endif
#endif