bug 1116382 no need to check IsMediaSourceURI(mLoadingSrc) once mMediaSource has been set r=bholley
This commit is contained in:
@@ -1082,7 +1082,7 @@ void HTMLMediaElement::UpdatePreloadAction()
|
||||
kNameSpaceID_None);
|
||||
// MSE doesn't work if preload is none, so it ignores the pref when src is
|
||||
// from MSE.
|
||||
uint32_t preloadDefault = (mLoadingSrc && IsMediaSourceURI(mLoadingSrc)) ?
|
||||
uint32_t preloadDefault = mMediaSource ?
|
||||
HTMLMediaElement::PRELOAD_ATTR_METADATA :
|
||||
Preferences::GetInt("media.preload.default",
|
||||
HTMLMediaElement::PRELOAD_ATTR_METADATA);
|
||||
@@ -3435,7 +3435,7 @@ void HTMLMediaElement::CheckProgress(bool aHaveNewProgress)
|
||||
if (now - mDataTime >= TimeDuration::FromMilliseconds(STALL_MS)) {
|
||||
DispatchAsyncEvent(NS_LITERAL_STRING("stalled"));
|
||||
|
||||
if (mLoadingSrc && IsMediaSourceURI(mLoadingSrc)) {
|
||||
if (mMediaSource) {
|
||||
ChangeDelayLoadStatus(false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user