mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 08:18:41 +09:00
Merge remote-tracking branch 'origin/tracking' into custom
This commit is contained in:
commit
0c6e087291
55 changed files with 320 additions and 34 deletions
|
|
@ -18,7 +18,9 @@
|
|||
#ifdef MOZ_APPLEMEDIA
|
||||
#include "AppleDecoderModule.h"
|
||||
#endif
|
||||
#ifdef MOZ_GMP
|
||||
#include "GMPDecoderModule.h"
|
||||
#endif
|
||||
|
||||
#include "mozilla/CDMProxy.h"
|
||||
#include "mozilla/ClearOnShutdown.h"
|
||||
|
|
@ -221,9 +223,11 @@ PDMFactory::CreateDecoder(const CreateDecoderParams& aParams)
|
|||
if (mFFmpegFailedToLoad) {
|
||||
diagnostics->SetFFmpegFailedToLoad();
|
||||
}
|
||||
#ifdef MOZ_GMP
|
||||
if (mGMPPDMFailedToStartup) {
|
||||
diagnostics->SetGMPPDMFailedToStartup();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
for (auto& current : mCurrentPDMs) {
|
||||
|
|
@ -393,12 +397,14 @@ PDMFactory::CreatePDMs()
|
|||
m = new AgnosticDecoderModule();
|
||||
StartupPDM(m);
|
||||
|
||||
#ifdef MOZ_GMP
|
||||
if (MediaPrefs::PDMGMPEnabled()) {
|
||||
m = new GMPDecoderModule();
|
||||
mGMPPDMFailedToStartup = !StartupPDM(m);
|
||||
} else {
|
||||
mGMPPDMFailedToStartup = false;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -431,9 +437,11 @@ PDMFactory::GetDecoder(const TrackInfo& aTrackInfo,
|
|||
if (mFFmpegFailedToLoad) {
|
||||
aDiagnostics->SetFFmpegFailedToLoad();
|
||||
}
|
||||
#ifdef MOZ_GMP
|
||||
if (mGMPPDMFailedToStartup) {
|
||||
aDiagnostics->SetGMPPDMFailedToStartup();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
RefPtr<PlatformDecoderModule> pdm;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue