1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 00:03:52 +02:00

Access BlockFile::mFileName without copying, with proper multithreading cautions

This commit is contained in:
Paul Licameli
2016-04-17 11:42:33 -04:00
parent 94cf94718e
commit 3d102a3390
8 changed files with 65 additions and 32 deletions

View File

@@ -987,7 +987,7 @@ void Sequence::HandleXMLEndTag(const wxChar *tag)
for (unsigned b = 0, nn = mBlock.size(); b < nn; b++) {
SeqBlock &block = mBlock[b];
if (block.start != numSamples) {
wxString sFileAndExtension = block.f->GetFileName().GetFullName();
wxString sFileAndExtension = block.f->GetFileName().name.GetFullName();
if (sFileAndExtension.IsEmpty())
sFileAndExtension = wxT("(replaced with silence)");
else
@@ -1829,7 +1829,7 @@ void Sequence::DebugPrintf(wxString *dest) const
seqBlock.f ? mDirManager->GetRefCount(seqBlock.f) : 0);
if (seqBlock.f)
*dest += seqBlock.f->GetFileName().GetFullName();
*dest += seqBlock.f->GetFileName().name.GetFullName();
else
*dest += wxT("<missing block file>");