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; }