зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1254858: P8. Change default preferences value if prefs don't exist. r=kentuckyfriedtakahe
When running gtest, none of the prefs actually exist, so we end up having most PDMs disabled. MozReview-Commit-ID: GNjhXtjKpGC --HG-- extra : rebase_source : 3e5a931dd49c798cff9792e3a1c4ff2e5afc4a83
This commit is contained in:
Родитель
6f2a236360
Коммит
edda0a3356
|
@ -180,7 +180,7 @@ MP4Decoder::CanHandleMediaType(const nsAString& aContentType)
|
||||||
bool
|
bool
|
||||||
MP4Decoder::IsEnabled()
|
MP4Decoder::IsEnabled()
|
||||||
{
|
{
|
||||||
return Preferences::GetBool("media.mp4.enabled");
|
return Preferences::GetBool("media.mp4.enabled", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// sTestH264ExtraData represents the content of the avcC atom found in
|
// sTestH264ExtraData represents the content of the avcC atom found in
|
||||||
|
|
|
@ -82,10 +82,10 @@ PDMFactory::Init()
|
||||||
alreadyInitialized = true;
|
alreadyInitialized = true;
|
||||||
|
|
||||||
Preferences::AddBoolVarCache(&sUseBlankDecoder,
|
Preferences::AddBoolVarCache(&sUseBlankDecoder,
|
||||||
"media.use-blank-decoder");
|
"media.use-blank-decoder", false);
|
||||||
#ifdef MOZ_GONK_MEDIACODEC
|
#ifdef MOZ_GONK_MEDIACODEC
|
||||||
Preferences::AddBoolVarCache(&sGonkDecoderEnabled,
|
Preferences::AddBoolVarCache(&sGonkDecoderEnabled,
|
||||||
"media.gonk.enabled", false);
|
"media.gonk.enabled", true);
|
||||||
#endif
|
#endif
|
||||||
#ifdef MOZ_WIDGET_ANDROID
|
#ifdef MOZ_WIDGET_ANDROID
|
||||||
Preferences::AddBoolVarCache(&sAndroidMCDecoderEnabled,
|
Preferences::AddBoolVarCache(&sAndroidMCDecoderEnabled,
|
||||||
|
@ -95,18 +95,18 @@ PDMFactory::Init()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Preferences::AddBoolVarCache(&sGMPDecoderEnabled,
|
Preferences::AddBoolVarCache(&sGMPDecoderEnabled,
|
||||||
"media.gmp.decoder.enabled", false);
|
"media.gmp.decoder.enabled", true);
|
||||||
#ifdef MOZ_FFMPEG
|
#ifdef MOZ_FFMPEG
|
||||||
Preferences::AddBoolVarCache(&sFFmpegDecoderEnabled,
|
Preferences::AddBoolVarCache(&sFFmpegDecoderEnabled,
|
||||||
"media.ffmpeg.enabled", false);
|
"media.ffmpeg.enabled", true);
|
||||||
#endif
|
#endif
|
||||||
#ifdef MOZ_FFVPX
|
#ifdef MOZ_FFVPX
|
||||||
Preferences::AddBoolVarCache(&sFFVPXDecoderEnabled,
|
Preferences::AddBoolVarCache(&sFFVPXDecoderEnabled,
|
||||||
"media.ffvpx.enabled", false);
|
"media.ffvpx.enabled", true);
|
||||||
#endif
|
#endif
|
||||||
#ifdef XP_WIN
|
#ifdef XP_WIN
|
||||||
Preferences::AddBoolVarCache(&sWMFDecoderEnabled,
|
Preferences::AddBoolVarCache(&sWMFDecoderEnabled,
|
||||||
"media.wmf.enabled", false);
|
"media.wmf.enabled", true);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Preferences::AddBoolVarCache(&sEnableFuzzingWrapper,
|
Preferences::AddBoolVarCache(&sEnableFuzzingWrapper,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче