mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 07:13:49 +01:00
One less indirection accessing SeqBlock
This commit is contained in:
@@ -326,10 +326,14 @@ bool RecordingRecoveryHandler::HandleXMLTag(const wxChar *tag,
|
||||
Sequence* seq = clip->GetSequence();
|
||||
|
||||
// Load the blockfile from the XML
|
||||
BlockFile* blockFile = NULL;
|
||||
DirManager* dirManager = mProject->GetDirManager();
|
||||
dirManager->SetLoadingFormat(seq->GetSampleFormat());
|
||||
dirManager->SetLoadingTarget(&blockFile);
|
||||
|
||||
BlockArray array;
|
||||
array.resize(1);
|
||||
dirManager->SetLoadingTarget(&array, 0);
|
||||
BlockFile *& blockFile = array[0].f;
|
||||
|
||||
if (!dirManager->HandleXMLTag(tag, attrs) || !blockFile)
|
||||
{
|
||||
// This should only happen if there is a bug
|
||||
|
||||
Reference in New Issue
Block a user