mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-22 08:27:31 +09:00
Issue #2301 - Make Gecko Media Plugins optional when not building EME or WebRTC
Co-authored-by: Moonchild <moonchild@palemoon.org>
This commit is contained in:
parent
57020c1f59
commit
9e7d1492e6
54 changed files with 314 additions and 30 deletions
|
|
@ -25,7 +25,9 @@ H264Converter::H264Converter(PlatformDecoderModule* aPDM,
|
|||
, mTaskQueue(aParams.mTaskQueue)
|
||||
, mCallback(aParams.mCallback)
|
||||
, mDecoder(nullptr)
|
||||
#ifdef MOZ_GMP
|
||||
, mGMPCrashHelper(aParams.mCrashHelper)
|
||||
#endif
|
||||
, mNeedAVCC(aPDM->DecoderNeedsConversion(aParams.mConfig)
|
||||
== PlatformDecoderModule::ConversionRequired::kNeedAVCC)
|
||||
, mLastError(NS_OK)
|
||||
|
|
@ -201,8 +203,12 @@ H264Converter::CreateDecoder(DecoderDoctorDiagnostics* aDiagnostics)
|
|||
mCallback,
|
||||
aDiagnostics,
|
||||
mImageContainer,
|
||||
#ifdef MOZ_GMP
|
||||
mKnowsCompositor,
|
||||
mGMPCrashHelper
|
||||
#else
|
||||
mKnowsCompositor
|
||||
#endif
|
||||
});
|
||||
|
||||
if (!mDecoder) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue