Bug 1292157: Ignore preload value when dealing with MediaSource originated URI. r=jwwang
MozReview-Commit-ID: CN9w9XJj2YR
This commit is contained in:
@@ -1212,7 +1212,7 @@ void HTMLMediaElement::SelectResource()
|
||||
mMediaSource = mSrcMediaSource;
|
||||
UpdatePreloadAction();
|
||||
if (mPreloadAction == HTMLMediaElement::PRELOAD_NONE &&
|
||||
!IsMediaStreamURI(mLoadingSrc)) {
|
||||
!IsMediaStreamURI(mLoadingSrc) && !mMediaSource) {
|
||||
// preload:none media, suspend the load here before we make any
|
||||
// network requests.
|
||||
SuspendLoad();
|
||||
@@ -1367,7 +1367,7 @@ void HTMLMediaElement::LoadFromSourceChildren()
|
||||
"Network state should be loading");
|
||||
|
||||
if (mPreloadAction == HTMLMediaElement::PRELOAD_NONE &&
|
||||
!IsMediaStreamURI(mLoadingSrc)) {
|
||||
!IsMediaStreamURI(mLoadingSrc) && !mMediaSource) {
|
||||
// preload:none media, suspend the load here before we make any
|
||||
// network requests.
|
||||
SuspendLoad();
|
||||
|
||||
Reference in New Issue
Block a user