зеркало из https://github.com/mozilla/gecko-dev.git
Bug 687972. Ignore closed streams when computing whether all streams for the resource are suspended. r=cpearce
This commit is contained in:
Родитель
10e6018920
Коммит
684f03fbb8
|
@ -1913,7 +1913,7 @@ nsMediaCacheStream::AreAllStreamsForResourceSuspended(nsMediaStream** aActiveStr
|
||||||
ReentrantMonitorAutoEnter mon(gMediaCache->GetReentrantMonitor());
|
ReentrantMonitorAutoEnter mon(gMediaCache->GetReentrantMonitor());
|
||||||
nsMediaCache::ResourceStreamIterator iter(mResourceID);
|
nsMediaCache::ResourceStreamIterator iter(mResourceID);
|
||||||
while (nsMediaCacheStream* stream = iter.Next()) {
|
while (nsMediaCacheStream* stream = iter.Next()) {
|
||||||
if (!stream->mCacheSuspended && !stream->mChannelEnded) {
|
if (!stream->mCacheSuspended && !stream->mChannelEnded && !stream->mClosed) {
|
||||||
if (aActiveStream) {
|
if (aActiveStream) {
|
||||||
*aActiveStream = stream->mClient;
|
*aActiveStream = stream->mClient;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче