m_customEffectsMenu = static_cast<QMenu*>(factory()->container("custom_effects_menu", this));
effects = customEffects.effectNames();
if (effects.isEmpty()) {
- action = new QAction(i18n("No Custom Effects"), this);
- action->setEnabled(false);
- m_customEffectsMenu->addAction(action);
+ action = new QAction(i18n("No Custom Effects"), this);
+ action->setEnabled(false);
+ m_customEffectsMenu->addAction(action);
}
foreach(const QString &name, effects) {
action = new QAction(name, this);
const QStringList effects = customEffects.effectNames();
QAction *action;
if (effects.isEmpty()) {
- action = new QAction(i18n("No Custom Effects"), this);
- action->setEnabled(false);
- m_customEffectsMenu->addAction(action);
+ action = new QAction(i18n("No Custom Effects"), this);
+ action->setEnabled(false);
+ m_customEffectsMenu->addAction(action);
}
foreach(const QString &name, effects) {
action = new QAction(name, this);
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()) {