1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-10 16:43:33 +02:00

Fix bug 471.

This commit is contained in:
v.audacity
2012-02-15 18:09:16 +00:00
parent d0922d821b
commit aae8051953

View File

@@ -467,15 +467,15 @@ int FLACImportFileHandle::Import(TrackFactory *trackFactory,
useOD=true;
#endif
// ANSWER-ME: Vigilant Sentry: Variable res unused after assignment (error code DA1)
// Plus, it's not even declared in the LEGACY_FLAC clause
//#ifdef LEGACY_FLAC
// bool res = (mFile->process_until_end_of_file() != 0);
//#else
// bool res = true;
// if(!useOD)
// res = (mFile->process_until_end_of_stream() != 0);
//#endif
// TO-DO: Vigilant Sentry: Variable res unused after assignment (error code DA1)
// Should check the result.
#ifdef LEGACY_FLAC
bool res = (mFile->process_until_end_of_file() != 0);
#else
bool res = true;
if(!useOD)
res = (mFile->process_until_end_of_stream() != 0);
#endif
//add the task to the ODManager
if(useOD)