]> git.sesse.net Git - kdenlive/commitdiff
Fix build with Qt < 4.6:
authorTill Theato <root@ttill.de>
Mon, 3 Jan 2011 13:50:16 +0000 (13:50 +0000)
committerTill Theato <root@ttill.de>
Mon, 3 Jan 2011 13:50:16 +0000 (13:50 +0000)
http://kdenlive.org/mantis/view.php?id=1958

svn path=/trunk/kdenlive/; revision=5246

src/dvdwizard.cpp

index 542e6b3576737117aff48c0777d0cd2703e66d2c..d436860ae61bfdee3b6bfe19ba9fe9272889642b 100644 (file)
@@ -486,9 +486,15 @@ void DvdWizard::generateDvd()
     m_creationLog.clear();
     m_dvdauthor = new QProcess(this);
     // Set VIDEO_FORMAT variable (required by dvdauthor 0.7)
+#if QT_VERSION >= 0x040600
     QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
     env.insert("VIDEO_FORMAT", m_pageVob->isPal() ? "PAL" : "NTSC"); 
     m_dvdauthor->setProcessEnvironment(env);
+#else
+    QStringList env = QProcess::systemEnvironment();
+    env << "VIDEO_FORMAT=" + (m_pageVob->isPal() ? "PAL" : "NTSC");
+    m_dvdauthor->setEnvironment(env);
+#endif
     connect(m_dvdauthor, SIGNAL(finished(int , QProcess::ExitStatus)), this, SLOT(slotRenderFinished(int, QProcess::ExitStatus)));
     connect(m_dvdauthor, SIGNAL(readyReadStandardOutput()), this, SLOT(slotShowRenderInfo()));
     m_dvdauthor->setProcessChannelMode(QProcess::MergedChannels);