Bug 1214932 - Add media.wmf.enabled pref. r=jya

This commit is contained in:
Chris Pearce 2015-10-15 14:51:34 +13:00
Родитель bd6f4df204
Коммит b339118972
2 изменённых файлов: 14 добавлений и 2 удалений

Просмотреть файл

@ -56,6 +56,9 @@ bool PDMFactory::sGMPDecoderEnabled = false;
#ifdef MOZ_FFMPEG
bool PDMFactory::sFFmpegDecoderEnabled = false;
#endif
#ifdef XP_WIN
bool PDMFactory::sWMFDecoderEnabled = false;
#endif
bool PDMFactory::sEnableFuzzingWrapper = false;
uint32_t PDMFactory::sVideoOutputMinimumInterval_ms = 0;
@ -91,6 +94,10 @@ PDMFactory::Init()
Preferences::AddBoolVarCache(&sFFmpegDecoderEnabled,
"media.ffmpeg.enabled", false);
#endif
#ifdef XP_WIN
Preferences::AddBoolVarCache(&sWMFDecoderEnabled,
"media.wmf.enabled", false);
#endif
Preferences::AddBoolVarCache(&sEnableFuzzingWrapper,
"media.decoder.fuzzing.enabled", false);
@ -212,8 +219,10 @@ PDMFactory::CreatePDMs()
}
#endif
#ifdef XP_WIN
m = new WMFDecoderModule();
StartupPDM(m);
if (sWMFDecoderEnabled) {
m = new WMFDecoderModule();
StartupPDM(m);
}
#endif
#ifdef MOZ_FFMPEG
if (sFFmpegDecoderEnabled) {

Просмотреть файл

@ -66,6 +66,9 @@ private:
static bool sGMPDecoderEnabled;
#ifdef MOZ_FFMPEG
static bool sFFmpegDecoderEnabled;
#endif
#ifdef XP_WIN
static bool sWMFDecoderEnabled;
#endif
static bool sEnableFuzzingWrapper;
static uint32_t sVideoOutputMinimumInterval_ms;