1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-12 15:46:25 +01:00

As in commit r11447, put a wxASSERT on result of SimpleBlockFile::WriteSimpleBlockFile() in ODDecodeBlockFile::WriteODDecodeBlockFile.

This commit is contained in:
v.audacity
2012-02-02 00:36:39 +00:00
parent 5d0384915d
commit c6c3d9106b

View File

@@ -330,11 +330,13 @@ int ODDecodeBlockFile::WriteODDecodeBlockFile()
//the summary is also calculated here.
mFileNameMutex.Lock();
//TODO: we may need to write a version of WriteSimpleBlockFile that uses threadsafe FILE vs wxFile
WriteSimpleBlockFile(
sampleData,
mLen,
mFormat,
NULL);//summaryData);
bool bSuccess =
WriteSimpleBlockFile(
sampleData,
mLen,
mFormat,
NULL);//summaryData);
wxASSERT(bSuccess); // TO-DO: Handle failure here by alert to user and undo partial op.
mFileNameMutex.Unlock();