mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 18:55:30 +00:00
Bug 1312886: [MSE] P3. Only rely on waiting promise to determine buffering state. r=jwwang
MozReview-Commit-ID: 3HfK8bwqlYM --HG-- extra : rebase_source : ca44d3ef57165f9764ff57a4932065f19e379e3f
This commit is contained in:
parent
27831447c8
commit
7c88ceb9a4
@ -1469,14 +1469,11 @@ DecodingState::MaybeStartBuffering()
|
||||
return;
|
||||
}
|
||||
|
||||
// No more data to download. No need to enter buffering.
|
||||
if (!Resource()->IsExpectingMoreData()) {
|
||||
return;
|
||||
}
|
||||
|
||||
bool shouldBuffer;
|
||||
if (Reader()->UseBufferingHeuristics()) {
|
||||
shouldBuffer = mMaster->HasLowDecodedData() && mMaster->HasLowBufferedData();
|
||||
shouldBuffer = Resource()->IsExpectingMoreData() &&
|
||||
mMaster->HasLowDecodedData() &&
|
||||
mMaster->HasLowBufferedData();
|
||||
} else {
|
||||
MOZ_ASSERT(Reader()->IsWaitForDataSupported());
|
||||
shouldBuffer =
|
||||
|
Loading…
Reference in New Issue
Block a user