From 684f03fbb86db1f3df8bbe9501762bf3fda65e58 Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Thu, 15 Dec 2011 23:26:42 +1300 Subject: [PATCH] Bug 687972. Ignore closed streams when computing whether all streams for the resource are suspended. r=cpearce --- content/media/nsMediaCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/media/nsMediaCache.cpp b/content/media/nsMediaCache.cpp index 7af430bd6a9c..4ecaa8a8bd92 100644 --- a/content/media/nsMediaCache.cpp +++ b/content/media/nsMediaCache.cpp @@ -1913,7 +1913,7 @@ nsMediaCacheStream::AreAllStreamsForResourceSuspended(nsMediaStream** aActiveStr ReentrantMonitorAutoEnter mon(gMediaCache->GetReentrantMonitor()); nsMediaCache::ResourceStreamIterator iter(mResourceID); while (nsMediaCacheStream* stream = iter.Next()) { - if (!stream->mCacheSuspended && !stream->mChannelEnded) { + if (!stream->mCacheSuspended && !stream->mChannelEnded && !stream->mClosed) { if (aActiveStream) { *aActiveStream = stream->mClient; }