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

Unified Diff: webrtc/pc/channel.cc

Issue 2854123003: Build WebRTC with data channel only. (Closed)
Patch Set: Add an end to end test for libjingle_peerconnection_datachannel_only. Make it 2.37Mb. Created 3 years, 7 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
Index: webrtc/pc/channel.cc
diff --git a/webrtc/pc/channel.cc b/webrtc/pc/channel.cc
index f5428a43effac7a93fce554e11946c220946337c..c76ef40f845d12a94cf6e7801b66605dff843977 100644
--- a/webrtc/pc/channel.cc
+++ b/webrtc/pc/channel.cc
@@ -1607,10 +1607,14 @@ bool VoiceChannel::GetStats(VoiceMediaInfo* stats) {
}
std::vector<webrtc::RtpSource> VoiceChannel::GetSources(uint32_t ssrc) const {
+#if defined(HAVE_WEBRTC_VOICE) && defined(HAVE_WEBRTC_VIDEO)
return worker_thread()->Invoke<std::vector<webrtc::RtpSource>>(
RTC_FROM_HERE,
Bind(&WebRtcVoiceMediaChannel::GetSources,
static_cast<WebRtcVoiceMediaChannel*>(media_channel()), ssrc));
+#else
+ return std::vector<webrtc::RtpSource>();
+#endif
}
void VoiceChannel::StartMediaMonitor(int cms) {
« webrtc/media/BUILD.gn ('K') | « webrtc/pc/BUILD.gn ('k') | webrtc/pc/channelmanager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698