mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1165145: Part2. Only extends source buffer ranges if non-empty. r=karlt
This commit is contained in:
parent
02a02ef5c7
commit
097184f909
@ -1028,7 +1028,7 @@ MediaSourceReader::GetBuffered(dom::TimeRanges* aBuffered)
|
||||
for (uint32_t i = 0; i < activeRanges.Length(); ++i) {
|
||||
TimeRanges* sourceRanges = activeRanges[i];
|
||||
|
||||
if (IsEnded()) {
|
||||
if (IsEnded() && sourceRanges->GetEndTime() >= 0) {
|
||||
// Set the end time on the last range to highestEndTime by adding a
|
||||
// new range spanning the current end time to highestEndTime, which
|
||||
// Normalize() will then merge with the old last range.
|
||||
|
Loading…
Reference in New Issue
Block a user