From: ouv Date: Tue, 6 Apr 2010 11:55:29 +0000 (+0000) Subject: 0020822: Impossible to create AVI file from animation (bad compilation of Qt ?) X-Git-Tag: V5_1_main_20100407~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4f06da9323691c0310705a8b6a6c73451b8fd308;p=modules%2Fvisu.git 0020822: Impossible to create AVI file from animation (bad compilation of Qt ?) --- diff --git a/src/VISU_I/VISU_TimeAnimation.cxx b/src/VISU_I/VISU_TimeAnimation.cxx index 3ad6231b..43a7035f 100644 --- a/src/VISU_I/VISU_TimeAnimation.cxx +++ b/src/VISU_I/VISU_TimeAnimation.cxx @@ -1659,7 +1659,8 @@ std::string VISU_TimeAnimation::setDumpFormat(const char* theFormat) QList aDumpFormats = QImageWriter::supportedImageFormats(); if (myDumpFormat.isEmpty() || (aDumpFormats.indexOf(theFormat) < 0 && myDumpFormat.compare("AVI") != 0)) { - if (aDumpFormats.indexOf("JPEG")) + if (aDumpFormats.indexOf("JPEG") >= 0 || + aDumpFormats.indexOf("jpeg") >= 0) myDumpFormat = "JPEG"; else myDumpFormat = aDumpFormats.at(0); @@ -1677,7 +1678,9 @@ void VISU_TimeAnimation::setTimeStampFrequency(CORBA::Long theFrequency) bool VISU_TimeAnimation::checkAVIMaker() const { QList aDumpFormats = QImageWriter::supportedImageFormats(); - if (aDumpFormats.indexOf("JPEG") < 0) return false; + if (aDumpFormats.indexOf("JPEG") < 0 && + aDumpFormats.indexOf("jpeg") < 0) + return false; QString aCmd("which "); aCmd += myAVIMaker;