Index: talk/app/webrtc/rtpreceiver.cc |
diff --git a/talk/app/webrtc/rtpreceiver.cc b/talk/app/webrtc/rtpreceiver.cc |
index b88554f0ac4d5f6f1108adf042c7284820914ef4..9540f36f2f68ac03c3c11aa1de19ef787ff62006 100644 |
--- a/talk/app/webrtc/rtpreceiver.cc |
+++ b/talk/app/webrtc/rtpreceiver.cc |
@@ -39,6 +39,7 @@ AudioRtpReceiver::AudioRtpReceiver(AudioTrackInterface* track, |
ssrc_(ssrc), |
provider_(provider), |
cached_track_enabled_(track->enabled()) { |
+ RTC_DCHECK(track_->GetSource()->remote()); |
track_->RegisterObserver(this); |
track_->GetSource()->RegisterAudioObserver(this); |
Reconfigure(); |
@@ -85,6 +86,7 @@ VideoRtpReceiver::VideoRtpReceiver(VideoTrackInterface* track, |
uint32_t ssrc, |
VideoProviderInterface* provider) |
: id_(track->id()), track_(track), ssrc_(ssrc), provider_(provider) { |
+ RTC_DCHECK(track_->GetSource()->remote()); |
provider_->SetVideoPlayout(ssrc_, true, track_->GetSource()->FrameInput()); |
} |