Bug 2508 - Macros: Export2 handles channels > 2 incorrectly

This commit is contained in:
Leland Lucius 2021-01-29 06:00:36 -06:00
parent 1478abf3d0
commit 2ecc98225f
1 changed files with 22 additions and 2 deletions

View File

@ -487,7 +487,8 @@ bool Exporter::Process(unsigned numChannels,
mActualName = mFilename;
int i = -1;
for (const auto &pPlugin : mPlugins) {
for (const auto &pPlugin : mPlugins)
{
++i;
for (int j = 0; j < pPlugin->GetFormatCount(); j++)
{
@ -495,7 +496,26 @@ bool Exporter::Process(unsigned numChannels,
{
mFormat = i;
mSubFormat = j;
return CheckFilename() && ExportTracks();
// Gather track information
if (!ExamineTracks())
{
return false;
}
// Check for down mixing
if (!CheckMix(false))
{
return false;
}
// Ensure filename doesn't interfere with project files.
if (!CheckFilename())
{
return false;
}
return ExportTracks();
}
}
}