mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
Revert "Issue #2301 - Make Gecko Media Plugins optional when not building EME or WebRTC"
This reverts commit 9e7d1492e6.
This commit is contained in:
parent
7e50abda7d
commit
119feb053c
54 changed files with 30 additions and 314 deletions
|
|
@ -24,9 +24,7 @@
|
|||
#include "WebAudioUtils.h"
|
||||
#include "mozilla/dom/Promise.h"
|
||||
#include "nsPrintfCString.h"
|
||||
#ifdef MOZ_GMP
|
||||
#include "GMPService.h"
|
||||
#endif
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
|
|
@ -182,7 +180,6 @@ MediaDecodeTask::Run()
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef MOZ_GMP
|
||||
class BufferDecoderGMPCrashHelper : public GMPCrashHelper
|
||||
{
|
||||
public:
|
||||
|
|
@ -200,7 +197,6 @@ public:
|
|||
private:
|
||||
nsWeakPtr mParent;
|
||||
};
|
||||
#endif
|
||||
|
||||
bool
|
||||
MediaDecodeTask::CreateReader()
|
||||
|
|
@ -219,12 +215,8 @@ MediaDecodeTask::CreateReader()
|
|||
mLength, principal, mContentType);
|
||||
|
||||
MOZ_ASSERT(!mBufferDecoder);
|
||||
#ifdef MOZ_GMP
|
||||
mBufferDecoder = new BufferDecoder(resource,
|
||||
new BufferDecoderGMPCrashHelper(mDecodeJob.mContext->GetParentObject()));
|
||||
#else
|
||||
mBufferDecoder = new BufferDecoder(resource);
|
||||
#endif
|
||||
|
||||
// If you change this list to add support for new decoders, please consider
|
||||
// updating HTMLMediaElement::CreateDecoder as well.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue