mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 995090 - Update MediaCache again when there are changes in |MediaCache::mStreams|. r=roc
This commit is contained in:
parent
851264dc76
commit
79fabcdae3
@ -1552,6 +1552,11 @@ MediaCache::ReleaseStream(MediaCacheStream* aStream)
|
|||||||
ReentrantMonitorAutoEnter mon(mReentrantMonitor);
|
ReentrantMonitorAutoEnter mon(mReentrantMonitor);
|
||||||
CACHE_LOG(PR_LOG_DEBUG, ("Stream %p closed", aStream));
|
CACHE_LOG(PR_LOG_DEBUG, ("Stream %p closed", aStream));
|
||||||
mStreams.RemoveElement(aStream);
|
mStreams.RemoveElement(aStream);
|
||||||
|
|
||||||
|
// Update MediaCache again for |mStreams| is changed.
|
||||||
|
// We need to re-run Update() to ensure streams reading from the same resource
|
||||||
|
// as the removed stream get a chance to continue reading.
|
||||||
|
gMediaCache->QueueUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user