From: scottwkurth <sco...@us...> - 2005-01-29 03:38:57
|
Update of /cvsroot/tyshow/TyShow/TySplitter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11982 Modified Files: TySplitter.cpp Log Message: Changed to fail out of parsing chunks that cannot be properly validated for compatibility with some streaming programs. Index: TySplitter.cpp =================================================================== RCS file: /cvsroot/tyshow/TyShow/TySplitter/TySplitter.cpp,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** TySplitter.cpp 29 Jan 2005 02:58:20 -0000 1.18 --- TySplitter.cpp 29 Jan 2005 03:38:44 -0000 1.19 *************** *** 2008,2012 **** { DebugLogOutput(LOC, L"Chunk %d is not able to be parsed. Skipping...\n", chunkNumber); ! return S_OK; } --- 2008,2015 ---- { DebugLogOutput(LOC, L"Chunk %d is not able to be parsed. Skipping...\n", chunkNumber); ! // scottwkurth - From desh (http://www.dealdatabase.com/forum/showthread.php?t=27399&page=41&pp=15 ! // post #610), fail out chunks that cannot be validated to allow them to be skipped. ! // return S_OK; ! return E_FAIL; } *************** *** 2152,2156 **** { DebugLogOutput(LOC, L"Chunk %d had bad header.. skipping\n",chunkNumber); ! return S_OK; } if( chunkHeader->numRecs > 1000 ) --- 2155,2162 ---- { DebugLogOutput(LOC, L"Chunk %d had bad header.. skipping\n",chunkNumber); ! // scottwkurth - From desh (http://www.dealdatabase.com/forum/showthread.php?t=27399&page=41&pp=15 ! // post #610), fail out chunks that cannot be validated to allow them to be skipped. ! // return S_OK; ! return E_FAIL; } if( chunkHeader->numRecs > 1000 ) *************** *** 2158,2162 **** //1000 value borrowed from tydemux project DebugLogOutput(LOC, L"Chunk %d had records overflow skipping\n",chunkNumber); ! return S_OK; } --- 2164,2171 ---- //1000 value borrowed from tydemux project DebugLogOutput(LOC, L"Chunk %d had records overflow skipping\n",chunkNumber); ! // scottwkurth - From desh (http://www.dealdatabase.com/forum/showthread.php?t=27399&page=41&pp=15 ! // post #610), fail out chunks that cannot be validated to allow them to be skipped. ! // return S_OK; ! return E_FAIL; } |