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

Unified Diff: webrtc/pc/rtpreceiver.cc

Issue 2770233003: Implemented the GetSources() in native code. (Closed)
Patch Set: Address the comments related to threading and the special ContributingSource that uses the SSRC. Created 3 years, 9 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/rtpreceiver.cc
diff --git a/webrtc/pc/rtpreceiver.cc b/webrtc/pc/rtpreceiver.cc
index 6073b15a9739872fa89fbdb212722d35238e6519..7c39403dec0d2132058412791284c571a92339d2 100644
--- a/webrtc/pc/rtpreceiver.cc
+++ b/webrtc/pc/rtpreceiver.cc
@@ -12,7 +12,9 @@
#include "webrtc/api/mediastreamtrackproxy.h"
#include "webrtc/api/videosourceproxy.h"
+#include "webrtc/base/ptr_util.h"
#include "webrtc/base/trace_event.h"
+#include "webrtc/modules/rtp_rtcp/include/rtp_receiver.h"
#include "webrtc/pc/audiotrack.h"
#include "webrtc/pc/videotrack.h"
@@ -97,6 +99,10 @@ void AudioRtpReceiver::Stop() {
stopped_ = true;
}
+std::vector<RtpContributingSource> AudioRtpReceiver::GetContributingSources() {
+ return channel_->GetContributingSources(ssrc_);
+}
+
void AudioRtpReceiver::Reconfigure() {
RTC_DCHECK(!stopped_);
if (!channel_) {

Powered by Google App Engine
This is Rietveld 408576698