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

Unified Diff: pc/webrtcsession.cc

Issue 2826263004: Move responsibility for RTP header extensions on video receive. (Closed)
Patch Set: Crude rebase. Created 3 years, 3 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 | « media/engine/webrtcvideoengine_unittest.cc ('k') | test/call_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pc/webrtcsession.cc
diff --git a/pc/webrtcsession.cc b/pc/webrtcsession.cc
index 86015a79facc9cbd8f979abab267921bc146865d..9d8c735933ef45b7548d8f0f243d91b51129f5d1 100644
--- a/pc/webrtcsession.cc
+++ b/pc/webrtcsession.cc
@@ -984,6 +984,21 @@ bool WebRtcSession::PushdownMediaDescription(
(source == cricket::CS_LOCAL ? local_description() : remote_description())
->description();
RTC_DCHECK(sdesc);
+#if 0
+ if (source == cricket::CS_LOCAL) {
+ const SessionDescription* local_desc = local_description()->description();
+ const ContentInfo* content_info = GetFirstDataContent(local_desc);
+ RTC_DCHECK(IsVideoContent(content_info));
+ const cricket::VideoContentDescription* content_desc =
+ static_cast<const cricket::VideoContentDescription*>(
+ content_info->description);
+ if (content_desc->rtp_header_extensions_set())
+ call_->SetVideoReceiveRtpHeaderExtensions(
+ content_desc->rtp_header_extensions());
+
+ return ch->PushdownLocalDescription(local_description()->description(),
+ action, err);
+#endif
bool all_success = true;
for (auto* channel : Channels()) {
// TODO(steveanton): Add support for multiple channels of the same type.
« no previous file with comments | « media/engine/webrtcvideoengine_unittest.cc ('k') | test/call_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698