Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(214)

Unified Diff: webrtc/pc/peerconnectionfactory.cc

Issue 2964863002: Change VideoTrack implementation to invoke VideoTrackSourceInterface::AddOrUpdateSink on wt (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/pc/peerconnectionfactory.cc
diff --git a/webrtc/pc/peerconnectionfactory.cc b/webrtc/pc/peerconnectionfactory.cc
index 77e6f2c272582cc988416f2a801f8011ed34c765..98b7f23a632a19cc54aa11c006694e9e8288ac60 100644
--- a/webrtc/pc/peerconnectionfactory.cc
+++ b/webrtc/pc/peerconnectionfactory.cc
@@ -252,22 +252,16 @@ PeerConnectionFactory::CreateVideoSource(
std::unique_ptr<cricket::VideoCapturer> capturer,
const MediaConstraintsInterface* constraints) {
RTC_DCHECK(signaling_thread_->IsCurrent());
- rtc::scoped_refptr<VideoTrackSourceInterface> source(
Taylor Brandstetter 2017/07/05 23:13:40 Hmm... I don't know if it's safe to do this, becau
perkj_webrtc 2017/07/06 15:08:20 VideoTrackSourceInterface is supposed to be an imp
Taylor Brandstetter 2017/07/06 22:24:05 So, what do you plan to do here then? If this meth
- VideoCapturerTrackSource::Create(worker_thread_, std::move(capturer),
- constraints, false));
- return VideoTrackSourceProxy::Create(signaling_thread_, worker_thread_,
- source);
+ return VideoCapturerTrackSource::Create(worker_thread_, std::move(capturer),
+ constraints, false);
}
rtc::scoped_refptr<VideoTrackSourceInterface>
PeerConnectionFactory::CreateVideoSource(
std::unique_ptr<cricket::VideoCapturer> capturer) {
RTC_DCHECK(signaling_thread_->IsCurrent());
- rtc::scoped_refptr<VideoTrackSourceInterface> source(
- VideoCapturerTrackSource::Create(worker_thread_, std::move(capturer),
- false));
- return VideoTrackSourceProxy::Create(signaling_thread_, worker_thread_,
- source);
+ return VideoCapturerTrackSource::Create(worker_thread_, std::move(capturer),
+ false);
}
bool PeerConnectionFactory::StartAecDump(rtc::PlatformFile file,
@@ -342,7 +336,8 @@ rtc::scoped_refptr<VideoTrackInterface> PeerConnectionFactory::CreateVideoTrack(
VideoTrackSourceInterface* source) {
RTC_DCHECK(signaling_thread_->IsCurrent());
rtc::scoped_refptr<VideoTrackInterface> track(
- VideoTrack::Create(id, source));
+ VideoTrack::Create(id, VideoTrackSourceProxy::Create(
+ signaling_thread_, worker_thread_, source)));
return VideoTrackProxy::Create(signaling_thread_, worker_thread_, track);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698