1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-15 23:59:37 +02:00

ExportMP3: Fix compiling with static loading

Audacity can be built with dynamically loading/unloading the MP3 library
(the default) or dynamically linked against the shared object file
(--disable-dynamic-loading). The code to load the library is only needed
in the former case.
This commit is contained in:
Benjamin Drung 2015-10-16 00:36:26 +02:00
parent 7eb7490a70
commit 162392e8cf

View File

@ -1602,6 +1602,7 @@ void ExportMP3::Destroy()
bool ExportMP3::CheckFileName(wxFileName & WXUNUSED(filename), int WXUNUSED(format))
{
#ifndef DISABLE_DYNAMIC_LOADING_LAME
MP3Exporter exporter;
if (!exporter.LoadLibrary(wxTheApp->GetTopWindow(), MP3Exporter::Maybe)) {
@ -1611,6 +1612,7 @@ bool ExportMP3::CheckFileName(wxFileName & WXUNUSED(filename), int WXUNUSED(form
return false;
}
#endif // DISABLE_DYNAMIC_LOADING_LAME
return true;
}