Bug 1371882 - Removed unnecessary `gMediaCache->` from MediaCache member functions - r=cpearce
MozReview-Commit-ID: BKjH9hfoL5g
--- a/dom/media/MediaCache.cpp
+++ b/dom/media/MediaCache.cpp
@@ -1641,32 +1641,32 @@ MediaCache::OpenStream(MediaCacheStream*
NS_ASSERTION(NS_IsMainThread(), "Only call on main thread");
ReentrantMonitorAutoEnter mon(mReentrantMonitor);
LOG("Stream %p opened", aStream);
mStreams.AppendElement(aStream);
aStream->mResourceID = AllocateResourceID();
// Queue an update since a new stream has been opened.
- gMediaCache->QueueUpdate();
+ QueueUpdate();
}
void
MediaCache::ReleaseStream(MediaCacheStream* aStream)
{
NS_ASSERTION(NS_IsMainThread(), "Only call on main thread");
ReentrantMonitorAutoEnter mon(mReentrantMonitor);
LOG("Stream %p closed", 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();
+ QueueUpdate();
}
void
MediaCache::ReleaseStreamBlocks(MediaCacheStream* aStream)
{
mReentrantMonitor.AssertCurrentThreadIn();
// XXX scanning the entire stream doesn't seem great, if not much of it