зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1218577: Use only Blank PDM if enabled. r=kamidphish
This commit is contained in:
Родитель
6fc0b6a576
Коммит
7dcba4750b
|
@ -241,6 +241,15 @@ PDMFactory::CreatePDMs()
|
||||||
{
|
{
|
||||||
RefPtr<PlatformDecoderModule> m;
|
RefPtr<PlatformDecoderModule> m;
|
||||||
|
|
||||||
|
if (sUseBlankDecoder) {
|
||||||
|
m = CreateBlankDecoderModule();
|
||||||
|
StartupPDM(m);
|
||||||
|
// The Blank PDM SupportsMimeType reports true for all codecs; the creation
|
||||||
|
// of its decoder is infallible. As such it will be used for all media, we
|
||||||
|
// can stop creating more PDM from this point.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (sGMPDecoderEnabled) {
|
if (sGMPDecoderEnabled) {
|
||||||
m = new GMPDecoderModule();
|
m = new GMPDecoderModule();
|
||||||
StartupPDM(m);
|
StartupPDM(m);
|
||||||
|
@ -282,11 +291,6 @@ PDMFactory::CreatePDMs()
|
||||||
|
|
||||||
m = new AgnosticDecoderModule();
|
m = new AgnosticDecoderModule();
|
||||||
StartupPDM(m);
|
StartupPDM(m);
|
||||||
|
|
||||||
if (sUseBlankDecoder) {
|
|
||||||
m = CreateBlankDecoderModule();
|
|
||||||
StartupPDM(m);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
|
Загрузка…
Ссылка в новой задаче