зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1435709 - Don't attempt to use stagefright to decode theora. r=padenot
MozReview-Commit-ID: 215BhSSWGBC --HG-- extra : rebase_source : ce13146082438224577e6238279c161f3bc7bfc0
This commit is contained in:
Родитель
659de18c8a
Коммит
34790a4e8a
|
@ -104,6 +104,13 @@ AndroidDecoderModule::SupportsMimeType(
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Prefer the gecko decoder for Theora.
|
||||||
|
// Not all android devices support Theora even when they say they do.
|
||||||
|
if (TheoraDecoder::IsTheora(aMimeType)) {
|
||||||
|
LOG("Rejecting video of type %s", aMimeType.Data());
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return java::HardwareCodecCapabilityUtils::FindDecoderCodecInfoForMimeType(
|
return java::HardwareCodecCapabilityUtils::FindDecoderCodecInfoForMimeType(
|
||||||
nsCString(TranslateMimeType(aMimeType)));
|
nsCString(TranslateMimeType(aMimeType)));
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче