From: ana Date: Fri, 3 Dec 2010 15:56:51 +0000 (+0000) Subject: fix for the IPAL22001: jpeg2yuv is not available on winXP stations X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=30a16eb2f8f1658f7bcba37a4713a6b4d95a92bc;p=modules%2Fgui.git fix for the IPAL22001: jpeg2yuv is not available on winXP stations --- diff --git a/src/SVTK/SVTK_Recorder.cxx b/src/SVTK/SVTK_Recorder.cxx index 84a3221eb..96bdfb3e9 100755 --- a/src/SVTK/SVTK_Recorder.cxx +++ b/src/SVTK/SVTK_Recorder.cxx @@ -116,7 +116,11 @@ SVTK_Recorder myErrorStatus = 0; using namespace std; ostringstream aStream; +#ifndef WIN32 aStream<<"which "<& /dev/null"; +#else + aStream<<"setlocal & set P2=.;%PATH% & (for %e in (%PATHEXT%) do @for %i in ("< NUL"; + #endif if(anIndex + 1 < aFinishIndex) + #ifndef WIN32 aStream<<" \\"; - aStream< " + tmpFile + + ") & (for /f %i in (" + tmpFile + ") do (del \"%i\")) & (del " + tmpFile + "))) > NUL"; +#endif if(MYDEBUG) cout<<"SVTK_Recorder::MakeFileAVI - "<<(const char*)aCommand.toLatin1()<