mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-11 09:31:13 +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:
parent
6664607e4d
commit
c2ab493524
@ -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]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user