зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1190676 - Part 12 - Fix mozCaptureStream. r=pehrsons
--HG-- extra : rebase_source : 7c65617a6a668df64672aadcda9269ae15d5d813
This commit is contained in:
Родитель
6dc1e1fd9f
Коммит
d0ba0d8c85
|
@ -1830,6 +1830,14 @@ HTMLMediaElement::CaptureStreamInternal(bool aFinishWhenEnded,
|
|||
return nullptr;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!aGraph) {
|
||||
MediaStreamGraph::GraphDriverType graphDriverType =
|
||||
HasAudio() ? MediaStreamGraph::AUDIO_THREAD_DRIVER
|
||||
: MediaStreamGraph::SYSTEM_THREAD_DRIVER;
|
||||
aGraph = MediaStreamGraph::GetInstance(graphDriverType, mAudioChannel);
|
||||
}
|
||||
|
||||
OutputMediaStream* out = mOutputStreams.AppendElement();
|
||||
out->mStream = DOMMediaStream::CreateTrackUnionStream(window, aGraph);
|
||||
nsRefPtr<nsIPrincipal> principal = GetCurrentPrincipal();
|
||||
|
|
Загрузка…
Ссылка в новой задаче