зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1271669 - Clean up some stream-centered code in MediaPipelineFactory. r=bwc
MozReview-Commit-ID: 8esaZmy7HVO --HG-- extra : rebase_source : b98d20380596e3b14c00034ca38b5ff82ff11320 extra : histedit_source : 5e5dcbce95878404f743b142a075c601a4f46f24
This commit is contained in:
Родитель
02e322e6f2
Коммит
8432f89c87
|
@ -867,7 +867,7 @@ MediaPipelineFactory::ConfigureVideoCodecMode(const JsepTrack& aTrack,
|
|||
{
|
||||
#if !defined(MOZILLA_EXTERNAL_LINKAGE)
|
||||
RefPtr<LocalSourceStreamInfo> stream =
|
||||
mPCMedia->GetLocalStreamById(aTrack.GetStreamId());
|
||||
mPCMedia->GetLocalStreamByTrackId(aTrack.GetTrackId());
|
||||
|
||||
//get video track
|
||||
RefPtr<mozilla::dom::VideoStreamTrack> videotrack =
|
||||
|
@ -878,15 +878,6 @@ MediaPipelineFactory::ConfigureVideoCodecMode(const JsepTrack& aTrack,
|
|||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
//get video source type
|
||||
RefPtr<DOMMediaStream> mediastream =
|
||||
mPCMedia->GetLocalStreamById(aTrack.GetStreamId())->GetMediaStream();
|
||||
|
||||
DOMLocalMediaStream* domLocalStream = mediastream->AsDOMLocalMediaStream();
|
||||
if (!domLocalStream) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
dom::MediaSourceEnum source = videotrack->GetSource().GetMediaSource();
|
||||
webrtc::VideoCodecMode mode = webrtc::kRealtimeVideo;
|
||||
switch (source) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче