mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-26 17:18:41 +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:
parent
7eb7490a70
commit
162392e8cf
@ -1602,6 +1602,7 @@ void ExportMP3::Destroy()
|
|||||||
|
|
||||||
bool ExportMP3::CheckFileName(wxFileName & WXUNUSED(filename), int WXUNUSED(format))
|
bool ExportMP3::CheckFileName(wxFileName & WXUNUSED(filename), int WXUNUSED(format))
|
||||||
{
|
{
|
||||||
|
#ifndef DISABLE_DYNAMIC_LOADING_LAME
|
||||||
MP3Exporter exporter;
|
MP3Exporter exporter;
|
||||||
|
|
||||||
if (!exporter.LoadLibrary(wxTheApp->GetTopWindow(), MP3Exporter::Maybe)) {
|
if (!exporter.LoadLibrary(wxTheApp->GetTopWindow(), MP3Exporter::Maybe)) {
|
||||||
@ -1611,6 +1612,7 @@ bool ExportMP3::CheckFileName(wxFileName & WXUNUSED(filename), int WXUNUSED(form
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
#endif // DISABLE_DYNAMIC_LOADING_LAME
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user