зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1457427 - Restrict the asserts of two MediaStreamGraph methods to align it with their callers. r=padenot
These two methods assert for OnGraphThreadOrNotRunning when their callers assert for OnGraphThread. Since the second assert is more limited we do not have to assert for a wider eventuality. MozReview-Commit-ID: 2cgzO160l6F --HG-- extra : rebase_source : 922a3d9775bb25022e456c19495b5e1666e7f8b7
This commit is contained in:
Родитель
7271873512
Коммит
ea082741ae
|
@ -381,7 +381,7 @@ MediaStreamGraphImpl::AudioTrackPresent()
|
|||
void
|
||||
MediaStreamGraphImpl::UpdateStreamOrder()
|
||||
{
|
||||
MOZ_ASSERT(OnGraphThreadOrNotRunning());
|
||||
MOZ_ASSERT(OnGraphThread());
|
||||
bool audioTrackPresent = AudioTrackPresent();
|
||||
|
||||
// Note that this looks for any audio streams, input or output, and switches to a
|
||||
|
@ -616,7 +616,7 @@ MediaStreamGraphImpl::NotifyHasCurrentData(MediaStream* aStream)
|
|||
void
|
||||
MediaStreamGraphImpl::CreateOrDestroyAudioStreams(MediaStream* aStream)
|
||||
{
|
||||
MOZ_ASSERT(OnGraphThreadOrNotRunning());
|
||||
MOZ_ASSERT(OnGraphThread());
|
||||
MOZ_ASSERT(mRealtime, "Should only attempt to create audio streams in real-time mode");
|
||||
|
||||
if (aStream->mAudioOutputs.IsEmpty()) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче