зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1362165: P1. Fix potential race accessing members. r=gerald
MozReview-Commit-ID: 9sXU2ZFKmJZ --HG-- extra : rebase_source : bd98998ab5295cb42652e75612c888d8b23ce0db
This commit is contained in:
Родитель
6ef28ca31d
Коммит
e27407d185
|
@ -202,11 +202,14 @@ MediaSourceDemuxer::DoDetachSourceBuffer(TrackBuffersManager* aSourceBuffer)
|
|||
mSourceBuffers.RemoveElementAt(i);
|
||||
}
|
||||
}
|
||||
if (aSourceBuffer == mAudioTrack) {
|
||||
mAudioTrack = nullptr;
|
||||
}
|
||||
if (aSourceBuffer == mVideoTrack) {
|
||||
mVideoTrack = nullptr;
|
||||
{
|
||||
MonitorAutoLock mon(mMonitor);
|
||||
if (aSourceBuffer == mAudioTrack) {
|
||||
mAudioTrack = nullptr;
|
||||
}
|
||||
if (aSourceBuffer == mVideoTrack) {
|
||||
mVideoTrack = nullptr;
|
||||
}
|
||||
}
|
||||
ScanSourceBuffersForContent();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче