зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1117295 - Don't finish the source stream in MediaEngineDefault::Stop due to racy behavior. r=jesup
This commit is contained in:
Родитель
3091deb3c3
Коммит
2868648e4f
|
@ -181,7 +181,6 @@ MediaEngineDefaultVideoSource::Stop(SourceMediaStream *aSource, TrackID aID)
|
||||||
aSource->EndTrack(kTrackCount + i);
|
aSource->EndTrack(kTrackCount + i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
aSource->Finish();
|
|
||||||
|
|
||||||
mState = kStopped;
|
mState = kStopped;
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
@ -438,7 +437,6 @@ MediaEngineDefaultAudioSource::Stop(SourceMediaStream *aSource, TrackID aID)
|
||||||
aSource->EndTrack(kTrackCount + kFakeVideoTrackCount+i);
|
aSource->EndTrack(kTrackCount + kFakeVideoTrackCount+i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
aSource->Finish();
|
|
||||||
|
|
||||||
mState = kStopped;
|
mState = kStopped;
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче