From 30a16eb2f8f1658f7bcba37a4713a6b4d95a92bc Mon Sep 17 00:00:00 2001 From: ana Date: Fri, 3 Dec 2010 15:56:51 +0000 Subject: [PATCH] fix for the IPAL22001: jpeg2yuv is not available on winXP stations --- src/SVTK/SVTK_Recorder.cxx | 38 ++++++++++++++++++++++++++++++-------- 1 file changed, 30 insertions(+), 8 deletions(-) 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()<