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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user