mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 529105. Don't mess with closed streams when data arrives for a resource that the closed stream is using. r=doublec
This commit is contained in:
parent
de398c4282
commit
6aa7121a3f
@ -190,6 +190,10 @@ public:
|
||||
|
||||
PRMonitor* Monitor() { return mMonitor; }
|
||||
|
||||
/**
|
||||
* An iterator that makes it easy to iterate through all streams that
|
||||
* have a given resource ID and are not closed.
|
||||
*/
|
||||
class ResourceStreamIterator {
|
||||
public:
|
||||
ResourceStreamIterator(PRInt64 aResourceID) :
|
||||
@ -199,7 +203,7 @@ public:
|
||||
while (mNext < gMediaCache->mStreams.Length()) {
|
||||
nsMediaCacheStream* stream = gMediaCache->mStreams[mNext];
|
||||
++mNext;
|
||||
if (stream->GetResourceID() == mResourceID)
|
||||
if (stream->GetResourceID() == mResourceID && !stream->IsClosed())
|
||||
return stream;
|
||||
}
|
||||
return nsnull;
|
||||
|
Loading…
Reference in New Issue
Block a user