зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1390748 - Remove OggDecoder::CreateStateMachine(). r=jwwang
MozReview-Commit-ID: 2JgZ2Ppv6as --HG-- extra : rebase_source : 5ce2fe9136dcd32f62f7de0e85523cdcda8fa206
This commit is contained in:
Родитель
4e7084d568
Коммит
502cbde454
|
@ -311,7 +311,10 @@ DecoderTraits::CreateReader(const MediaContainerType& aType,
|
|||
decoderReader = new MediaFormatReader(aInit, new FlacDemuxer(resource));
|
||||
} else
|
||||
if (OggDecoder::IsSupportedType(aType)) {
|
||||
decoderReader = new MediaFormatReader(aInit, new OggDemuxer(resource));
|
||||
RefPtr<OggDemuxer> demuxer = new OggDemuxer(resource);
|
||||
decoderReader = new MediaFormatReader(aInit, demuxer);
|
||||
demuxer->SetChainingEvents(&decoderReader->TimedMetadataProducer(),
|
||||
&decoderReader->MediaNotSeekableProducer());
|
||||
} else
|
||||
if (WebMDecoder::IsSupportedType(aType)) {
|
||||
decoderReader = new MediaFormatReader(aInit, new WebMDemuxer(resource));
|
||||
|
|
|
@ -13,20 +13,6 @@
|
|||
|
||||
namespace mozilla {
|
||||
|
||||
MediaDecoderStateMachine* OggDecoder::CreateStateMachine()
|
||||
{
|
||||
RefPtr<OggDemuxer> demuxer = new OggDemuxer(mResource);
|
||||
MediaFormatReaderInit init;
|
||||
init.mVideoFrameContainer = GetVideoFrameContainer();
|
||||
init.mKnowsCompositor = GetCompositor();
|
||||
init.mCrashHelper = GetOwner()->CreateGMPCrashHelper();
|
||||
init.mFrameStats = mFrameStats;
|
||||
mReader = new MediaFormatReader(init, demuxer);
|
||||
demuxer->SetChainingEvents(&mReader->TimedMetadataProducer(),
|
||||
&mReader->MediaNotSeekableProducer());
|
||||
return new MediaDecoderStateMachine(this, mReader);
|
||||
}
|
||||
|
||||
/* static */
|
||||
bool
|
||||
OggDecoder::IsSupportedType(const MediaContainerType& aContainerType)
|
||||
|
|
|
@ -19,8 +19,6 @@ public:
|
|||
: ChannelMediaDecoder(aInit)
|
||||
{}
|
||||
|
||||
MediaDecoderStateMachine* CreateStateMachine() override;
|
||||
|
||||
// Returns true if aContainerType is an Ogg type that we think we can render
|
||||
// with an enabled platform decoder backend.
|
||||
// If provided, codecs are checked for support.
|
||||
|
|
Загрузка…
Ссылка в новой задаче