1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-03 17:19:43 +02:00

Follow up to bug #1112

The custom FFmpeg options should check for a valid FFmpeg
environment also.
This commit is contained in:
Leland Lucius 2015-08-26 14:11:37 -05:00
parent e5ce636234
commit a35669a562

View File

@ -453,6 +453,19 @@ bool ExportFFmpegCustomOptions::TransferDataFromWindow()
///
void ExportFFmpegCustomOptions::OnOpen(wxCommandEvent & WXUNUSED(evt))
{
// Show "Locate FFmpeg" dialog
PickFFmpegLibs();
if (!FFmpegLibsInst->ValidLibsLoaded())
{
FFmpegLibsInst->FindLibs(NULL);
FFmpegLibsInst->FreeLibs();
if (!LoadFFmpeg(true))
{
return;
}
}
DropFFmpegLibs();
ExportFFmpegOptions od(wxGetTopLevelParent(this));
od.ShowModal();
}