mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-15 15:49:36 +02:00
Special handling for our stupid MP3 importer in extended import filtering
This commit is contained in:
parent
21ef4c379a
commit
ed778721d3
@ -413,7 +413,11 @@ int Importer::Import(wxString fName,
|
|||||||
|
|
||||||
if (!foundItem)
|
if (!foundItem)
|
||||||
{
|
{
|
||||||
|
bool prioritizeMp3 = false;
|
||||||
wxLogMessage(wxT("Applying default rule"));
|
wxLogMessage(wxT("Applying default rule"));
|
||||||
|
// Special treatment for mp3 files
|
||||||
|
if (wxMatchWild (wxT("*.mp3"),fName.Lower(), false))
|
||||||
|
prioritizeMp3 = true;
|
||||||
// By default just add all plugins (except for MP3)
|
// By default just add all plugins (except for MP3)
|
||||||
importPluginNode = mImportPluginList->GetFirst();
|
importPluginNode = mImportPluginList->GetFirst();
|
||||||
while(importPluginNode)
|
while(importPluginNode)
|
||||||
@ -427,6 +431,11 @@ int Importer::Import(wxString fName,
|
|||||||
wxLogMessage(wxT("Inserting %s"),plugin->GetPluginStringID().c_str());
|
wxLogMessage(wxT("Inserting %s"),plugin->GetPluginStringID().c_str());
|
||||||
importPlugins.Append(plugin);
|
importPlugins.Append(plugin);
|
||||||
}
|
}
|
||||||
|
else if (prioritizeMp3)
|
||||||
|
{
|
||||||
|
wxLogMessage(wxT("Inserting %s at 0"),plugin->GetPluginStringID().c_str());
|
||||||
|
importPlugins.Insert((size_t) 0, plugin);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
importPluginNode = importPluginNode->GetNext();
|
importPluginNode = importPluginNode->GetNext();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user