From 4f06da9323691c0310705a8b6a6c73451b8fd308 Mon Sep 17 00:00:00 2001 From: ouv Date: Tue, 6 Apr 2010 11:55:29 +0000 Subject: [PATCH] 0020822: Impossible to create AVI file from animation (bad compilation of Qt ?) --- src/VISU_I/VISU_TimeAnimation.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; -- 2.39.2