Bug 1190676 - Part 12 - Fix mozCaptureStream. r=pehrsons

--HG--
extra : rebase_source : 7c65617a6a668df64672aadcda9269ae15d5d813
This commit is contained in:
Paul Adenot 2015-08-27 16:13:56 +02:00
Родитель 6dc1e1fd9f
Коммит d0ba0d8c85
1 изменённых файлов: 8 добавлений и 0 удалений

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

@ -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();