mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 02:05:42 +00:00
Bug 1427666 - MediaCacheStream::InitAsCloneInternal() should notify the client that new data is available. r=bechen,gerald
We should call ChannelMediaResource::CacheClientNotifyDataReceived() no matter new data is coming from the channel or copied from the original cache stream so the decoder has a chance to compute 'canplaythrough' and buffer ranges. MozReview-Commit-ID: I4cLow2VzJg --HG-- extra : rebase_source : ede936c94a6d728cf6c596863e45aa45d2617d45
This commit is contained in:
parent
3cb530e5ea
commit
240c0a0c9a
@ -2916,6 +2916,10 @@ MediaCacheStream::InitAsCloneInternal(MediaCacheStream* aOriginal)
|
||||
mDownloadStatistics = aOriginal->mDownloadStatistics;
|
||||
mDownloadStatistics.Stop();
|
||||
|
||||
// Notify the client that we have new data so the decoder has a chance to
|
||||
// compute 'canplaythrough' and buffer ranges.
|
||||
mClient->CacheClientNotifyDataReceived();
|
||||
|
||||
if (aOriginal->mDidNotifyDataEnded &&
|
||||
NS_SUCCEEDED(aOriginal->mNotifyDataEndedStatus)) {
|
||||
mNotifyDataEndedStatus = aOriginal->mNotifyDataEndedStatus;
|
||||
|
Loading…
Reference in New Issue
Block a user