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) |
Taylor Brandstetter
2017/05/11 04:43:11
Only need HAVE_WEBRTC_VOICE, technically.
Zhi Huang
2017/05/12 20:05:33
Done.
|
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) { |