1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-13 14:13:32 +02:00

Bug1692: shouldn't crash when FFmpeg libraries absent

This commit is contained in:
Paul Licameli
2017-08-10 08:25:08 -04:00
parent c7d949c021
commit 01201a5ebd

View File

@@ -847,7 +847,8 @@ void FFmpegImportFileHandle::GetMetadata(Tags *tags, const wxChar *tag, const ch
FFmpegImportFileHandle::~FFmpegImportFileHandle()
{
av_log_set_callback(av_log_default_callback);
if (FFmpegLibsInst()->ValidLibsLoaded())
av_log_set_callback(av_log_default_callback);
// Do this before unloading the libraries
mContext.reset();