1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-11 17:41:15 +02:00

fix crash when using --without-ffmpeg when ffmpeg importer is still in prefs from previous --with-ffmpeg builds. Patch by Michael Chinen

This commit is contained in:
RichardAsh1981@gmail.com 2013-05-19 14:28:38 +00:00
parent 6664607e4d
commit c2ab493524

View File

@ -423,6 +423,11 @@ int Importer::Import(wxString fName,
wxLogDebug(wxT("Complete match!"));
for (size_t j = 0; j < item->filter_objects.Count() && (item->divider < 0 || (int) j < item->divider); j++)
{
// the filter_object can be NULL if a suitable importer was not found
// this happens when we recompile with --without-ffmpeg and there
// is still ffmpeg in prefs from previous --with-ffmpeg builds
if (!(item->filter_objects[j]))
continue;
wxLogDebug(wxT("Inserting %s"),item->filter_objects[j]->GetPluginStringID().c_str());
importPlugins.Append(item->filter_objects[j]);
}