mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
Bug 1189138
: [MSE] P4. Tell the mediasource demuxer of modified range as early as possible. r=gerald
We would only tell our demuxer once a complete media segment had been received. A partial media append would have unnecessarily delayed pending seeks.
This commit is contained in:
parent
625eecf933
commit
02c530d98b
@ -558,9 +558,6 @@ TrackBuffersManager::CodedFrameRemoval(TimeInterval aInterval)
|
|||||||
}
|
}
|
||||||
mEvictionOccurred = true;
|
mEvictionOccurred = true;
|
||||||
|
|
||||||
// Tell our demuxer that data was removed.
|
|
||||||
mMediaSourceDemuxer->NotifyTimeRangesChanged();
|
|
||||||
|
|
||||||
return dataRemoved;
|
return dataRemoved;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -584,6 +581,9 @@ TrackBuffersManager::UpdateBufferedRanges()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
mOfficialGroupEndTimestamp = mGroupEndTimestamp;
|
mOfficialGroupEndTimestamp = mGroupEndTimestamp;
|
||||||
|
|
||||||
|
// Tell our demuxer that data was removed or added.
|
||||||
|
mMediaSourceDemuxer->NotifyTimeRangesChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
nsRefPtr<TrackBuffersManager::AppendPromise>
|
nsRefPtr<TrackBuffersManager::AppendPromise>
|
||||||
@ -1196,9 +1196,6 @@ TrackBuffersManager::CompleteCodedFrameProcessing()
|
|||||||
// 7. Set append state to WAITING_FOR_SEGMENT.
|
// 7. Set append state to WAITING_FOR_SEGMENT.
|
||||||
SetAppendState(AppendState::WAITING_FOR_SEGMENT);
|
SetAppendState(AppendState::WAITING_FOR_SEGMENT);
|
||||||
|
|
||||||
// Tell our demuxer that data was added.
|
|
||||||
mMediaSourceDemuxer->NotifyTimeRangesChanged();
|
|
||||||
|
|
||||||
// 8. Jump to the loop top step above.
|
// 8. Jump to the loop top step above.
|
||||||
ResolveProcessing(false, __func__);
|
ResolveProcessing(false, __func__);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user