Bug 1384831. P5 - remove unused arguments from HLSDecoder::Load(). r=gerald

MozReview-Commit-ID: JsULuDcMiNa
This commit is contained in:
JW Wang
2017-07-27 02:54:53 +08:00
parent 9852477bc4
commit c3c7fb0a44
3 changed files with 4 additions and 8 deletions

View File

@@ -4816,7 +4816,6 @@ nsresult HTMLMediaElement::InitializeDecoderForChannel(nsIChannel* aChannel,
return NS_ERROR_FAILURE;
}
bool isPrivateBrowsing = NodePrincipal()->GetPrivateBrowsingId() > 0;
MediaDecoderInit decoderInit(this,
mAudioChannel,
mMuted ? 0.0 : mVolume,
@@ -4832,7 +4831,7 @@ nsresult HTMLMediaElement::InitializeDecoderForChannel(nsIChannel* aChannel,
if (HLSDecoder::IsSupportedType(*containerType)) {
RefPtr<HLSDecoder> decoder = new HLSDecoder(decoderInit);
reportCanPlay(true);
return SetupDecoder(decoder.get(), aChannel, isPrivateBrowsing, aListener);
return SetupDecoder(decoder.get(), aChannel);
}
#endif
@@ -4844,6 +4843,7 @@ nsresult HTMLMediaElement::InitializeDecoderForChannel(nsIChannel* aChannel,
}
reportCanPlay(true);
bool isPrivateBrowsing = NodePrincipal()->GetPrivateBrowsingId() > 0;
return SetupDecoder(decoder.get(), aChannel, isPrivateBrowsing, aListener);
}