Bug 1409178 - Move DecoderTraits::CreateDecoder() to ChannelMediaDecoder::Create(). r=jwwang

Now DecoderTraits doesn't need to depend on ChannelMediaDecoder.

MozReview-Commit-ID: D4AUiV2eGWy
This commit is contained in:
Chris Pearce
2017-10-16 22:55:26 +02:00
parent 0bf9a92625
commit 9b2cde1bf4
5 changed files with 32 additions and 36 deletions

View File

@@ -5012,7 +5012,7 @@ nsresult HTMLMediaElement::InitializeDecoderForChannel(nsIChannel* aChannel,
#endif
RefPtr<ChannelMediaDecoder> decoder =
DecoderTraits::CreateDecoder(decoderInit, &diagnostics);
ChannelMediaDecoder::Create(decoderInit, &diagnostics);
if (!decoder) {
reportCanPlay(false);
return NS_ERROR_FAILURE;