Backed out changeset 0f68913927a5 (bug 1499426) for mochitest failure on MediaEngineWebRTCAudio CLOSED TREE

This commit is contained in:
arthur.iakab 2019-01-11 21:04:03 +02:00
Родитель 0f97ca35a4
Коммит 404cf74da4
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -520,9 +520,6 @@ void MediaEngineWebRTCMicrophoneSource::SetTrack(
aStream->AddAudioTrack(aTrackID, aStream->GraphRate(), segment,
SourceMediaStream::ADDTRACK_QUEUED);
mInputProcessing = new AudioInputProcessing(mDeviceMaxChannelCount, mStream,
mTrackID, mPrincipal);
LOG("Stream %p registered for microphone capture", aStream.get());
}
@ -569,6 +566,9 @@ nsresult MediaEngineWebRTCMicrophoneSource::Start(
return NS_ERROR_FAILURE;
}
mInputProcessing = new AudioInputProcessing(mDeviceMaxChannelCount, mStream,
mTrackID, mPrincipal);
RefPtr<MediaEngineWebRTCMicrophoneSource> that = this;
NS_DispatchToMainThread(media::NewRunnableFrom(
[that, deviceID, stream = mStream, track = mTrackID]() {