1
0
Fork 0
This commit is contained in:
namedkitten 2020-04-12 14:10:50 +01:00
parent e42447d45e
commit 36e559462c
3 changed files with 5 additions and 6 deletions

View file

@ -23,10 +23,6 @@ auto mpvLogger = initLogger("mpv");
bool usedirect = false;
void setUseDirect(bool h) {
usedirect = h;
}
namespace {
void
@ -143,6 +139,9 @@ MPVBackend::MPVBackend(QQuickItem* parent)
if (!mpv)
throw std::runtime_error("could not create mpv context");
std::cout << QString("Direct: ").toUtf8().constData() << QString(usedirect ? "true" : "false").toUtf8().constData();
mpv_set_option_string(mpv, "terminal", "on");
mpv_set_option_string(mpv, "msg-level", "all=v");

View file

@ -15,7 +15,7 @@
#include "src/enums.hpp"
#include "src/utils.hpp"
void setUseDirect(bool);
extern bool usedirect;
class MpvRenderer;

View file

@ -109,7 +109,7 @@ main(int argc, char* argv[])
QSettings settings;
setUseDirect(settings.value("backend/direct", false).toBool());
usedirect = settings.value("Backend/direct", false).toBool();
Utils::SetDPMS(false);