mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-03 17:19:43 +02:00
Fix bug #141 and correct monolithic test.
This commit is contained in:
parent
1c0af1bc75
commit
f88b7f67ab
@ -99,12 +99,15 @@ void FFmpegStartup()
|
|||||||
bool enabled = false;
|
bool enabled = false;
|
||||||
gPrefs->Read(wxT("/FFmpeg/Enabled"),&enabled);
|
gPrefs->Read(wxT("/FFmpeg/Enabled"),&enabled);
|
||||||
// 'false' means that no errors should be shown whatsoever
|
// 'false' means that no errors should be shown whatsoever
|
||||||
if (enabled && !LoadFFmpeg(false))
|
if (!LoadFFmpeg(false))
|
||||||
{
|
{
|
||||||
wxMessageBox(_("FFmpeg was configured in Preferences and successfully loaded before, \
|
if (enabled)
|
||||||
\nbut this time Audacity failed to load it at startup. \
|
{
|
||||||
\n\nYou may want to go back to Preferences > Libraries and re-configure it."),
|
wxMessageBox(_("FFmpeg was configured in Preferences and successfully loaded before, \
|
||||||
_("FFmpeg startup failed"));
|
\nbut this time Audacity failed to load it at startup. \
|
||||||
|
\n\nYou may want to go back to Preferences > Libraries and re-configure it."),
|
||||||
|
_("FFmpeg startup failed"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -739,10 +742,9 @@ bool FFmpegLibs::InitLibs(wxString libpath_format, bool showerr)
|
|||||||
wxFileName actual;
|
wxFileName actual;
|
||||||
|
|
||||||
actual = FileNames::PathFromAddr(avformat->GetSymbol(wxT("avutil_version")));
|
actual = FileNames::PathFromAddr(avformat->GetSymbol(wxT("avutil_version")));
|
||||||
if (actual.GetPath().IsSameAs(name.GetPath())) {
|
if (actual.GetFullPath().IsSameAs(name.GetFullPath())) {
|
||||||
|
|
||||||
actual = FileNames::PathFromAddr(avformat->GetSymbol(wxT("avcodec_version")));
|
actual = FileNames::PathFromAddr(avformat->GetSymbol(wxT("avcodec_version")));
|
||||||
if (actual.GetPath().IsSameAs(name.GetPath())) {
|
if (actual.GetFullPath().IsSameAs(name.GetFullPath())) {
|
||||||
util = avformat;
|
util = avformat;
|
||||||
codec = avformat;
|
codec = avformat;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user