Fix?
This commit is contained in:
parent
e42447d45e
commit
36e559462c
|
@ -23,10 +23,6 @@ auto mpvLogger = initLogger("mpv");
|
||||||
|
|
||||||
bool usedirect = false;
|
bool usedirect = false;
|
||||||
|
|
||||||
void setUseDirect(bool h) {
|
|
||||||
usedirect = h;
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -143,6 +139,9 @@ MPVBackend::MPVBackend(QQuickItem* parent)
|
||||||
if (!mpv)
|
if (!mpv)
|
||||||
throw std::runtime_error("could not create mpv context");
|
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, "terminal", "on");
|
||||||
mpv_set_option_string(mpv, "msg-level", "all=v");
|
mpv_set_option_string(mpv, "msg-level", "all=v");
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
#include "src/enums.hpp"
|
#include "src/enums.hpp"
|
||||||
#include "src/utils.hpp"
|
#include "src/utils.hpp"
|
||||||
|
|
||||||
void setUseDirect(bool);
|
extern bool usedirect;
|
||||||
|
|
||||||
class MpvRenderer;
|
class MpvRenderer;
|
||||||
|
|
||||||
|
|
|
@ -109,7 +109,7 @@ main(int argc, char* argv[])
|
||||||
|
|
||||||
QSettings settings;
|
QSettings settings;
|
||||||
|
|
||||||
setUseDirect(settings.value("backend/direct", false).toBool());
|
usedirect = settings.value("Backend/direct", false).toBool();
|
||||||
|
|
||||||
Utils::SetDPMS(false);
|
Utils::SetDPMS(false);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue