X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fdvdwizard.cpp;h=840a74cac19f204ea377873a2415a9025c4794af;hb=12c52e2d2e97f703714b83dfd385db2de5f03f18;hp=542e6b3576737117aff48c0777d0cd2703e66d2c;hpb=8ca5dcad8722c1e1ff7622935466720cf3fcad61;p=kdenlive diff --git a/src/dvdwizard.cpp b/src/dvdwizard.cpp index 542e6b35..840a74ca 100644 --- a/src/dvdwizard.cpp +++ b/src/dvdwizard.cpp @@ -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 << QString("VIDEO_FORMAT=") + QString(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);