]> git.sesse.net Git - kdenlive/blobdiff - src/recmonitor.cpp
Fix typo in management of custom profiles. Should fix:
[kdenlive] / src / recmonitor.cpp
index a9bcc382218e132be3ef48c2650cf5dfc2f0efa6..b8d6ce713ba9668a57b833b3fb1f24383b28f3a1 100644 (file)
@@ -90,6 +90,16 @@ RecMonitor::RecMonitor(QString name, QWidget *parent)
 
     QStringList env = QProcess::systemEnvironment();
     env << "SDL_WINDOWID=" + QString::number(ui.video_frame->winId());
+
+    QString videoDriver = KdenliveSettings::videodrivername();
+    if (!videoDriver.isEmpty()) {
+        if (videoDriver == "x11_noaccel") {
+            env << "SDL_VIDEO_YUV_HWACCEL=0";
+            env << "SDL_VIDEODRIVER=x11";
+        } else env << "SDL_VIDEODRIVER=" + videoDriver;
+    }
+    setenv("SDL_VIDEO_ALLOW_SCREENSAVER", "1", 1);
+
     displayProcess->setEnvironment(env);
 
     if (KdenliveSettings::video4capture().isEmpty()) {