mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-27 15:53:49 +01:00
fix the build of on-demand ffmpeg, disable the preference if FFmpeg support is not compiled in. Patch by Michael Chinen. This feature is currently off in experimental.h.
This commit is contained in:
@@ -9,20 +9,23 @@
|
|||||||
|
|
||||||
******************************************************************/
|
******************************************************************/
|
||||||
|
|
||||||
#include <wx/wxprec.h>
|
|
||||||
#include "../Experimental.h"
|
|
||||||
// For compilers that support precompilation, includes "wx/wx.h".
|
|
||||||
#ifdef EXPERIMENTAL_OD_FFMPEG
|
|
||||||
|
|
||||||
#include "../Audacity.h" // needed before FFmpeg.h
|
#include "../Audacity.h" // needed before FFmpeg.h
|
||||||
#include "../FFmpeg.h" // which brings in avcodec.h, avformat.h
|
|
||||||
#include "../import/ImportFFmpeg.h"
|
|
||||||
|
|
||||||
|
#include <wx/wxprec.h>
|
||||||
|
// For compilers that support precompilation, includes "wx/wx.h".
|
||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
// Include your minimal set of headers here, or wx.h
|
// Include your minimal set of headers here, or wx.h
|
||||||
#include <wx/window.h>
|
#include <wx/window.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "../Experimental.h"
|
||||||
|
|
||||||
|
#ifdef USE_FFMPEG
|
||||||
|
#ifdef EXPERIMENTAL_OD_FFMPEG
|
||||||
|
|
||||||
|
#include "../FFmpeg.h" // which brings in avcodec.h, avformat.h
|
||||||
|
#include "../import/ImportFFmpeg.h"
|
||||||
|
|
||||||
|
|
||||||
extern FFmpegLibs *FFmpegLibsInst;
|
extern FFmpegLibs *FFmpegLibsInst;
|
||||||
#include "ODDecodeFFmpegTask.h"
|
#include "ODDecodeFFmpegTask.h"
|
||||||
@@ -656,6 +659,6 @@ void ODFFmpegDecoder::InsertCache(FFMpegDecodeCache* cache) {
|
|||||||
mDecodeCache.erase(mDecodeCache.begin()+dropindex);
|
mDecodeCache.erase(mDecodeCache.begin()+dropindex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
|
#endif //EXPERIMENTAL_OD_FFMPEG
|
||||||
|
#endif //USE_FFMPEG
|
||||||
|
|||||||
@@ -140,9 +140,12 @@ void LibraryPrefs::PopulateOrExchange(ShuttleGui & S)
|
|||||||
}
|
}
|
||||||
S.EndTwoColumn();
|
S.EndTwoColumn();
|
||||||
#ifdef EXPERIMENTAL_OD_FFMPEG
|
#ifdef EXPERIMENTAL_OD_FFMPEG
|
||||||
S.TieCheckBox(_("Allow &background on-demand loading"),
|
wxCheckBox* checkbox = S.TieCheckBox(_("Allow &background on-demand loading"),
|
||||||
wxT("/Library/FFmpegOnDemand"),
|
wxT("/Library/FFmpegOnDemand"),
|
||||||
false);
|
false);
|
||||||
|
#if !defined(USE_FFMPEG)
|
||||||
|
checkbox->Enable(FALSE);
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
S.EndStatic();
|
S.EndStatic();
|
||||||
|
|||||||
Reference in New Issue
Block a user