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

Unified Diff: talk/app/webrtc/webrtcsession.cc

Issue 1646253004: Split out dscp option from VideoOptions to new struct MediaChannelOptions. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. Created 4 years, 10 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 | « talk/app/webrtc/webrtcsession.h ('k') | talk/app/webrtc/webrtcsession_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/app/webrtc/webrtcsession.cc
diff --git a/talk/app/webrtc/webrtcsession.cc b/talk/app/webrtc/webrtcsession.cc
index 5957cae8aeb2bd8211d80f6e74c4a06e45339689..4cd3bc73fb24c61749ee831ca261a5a79a413e9b 100644
--- a/talk/app/webrtc/webrtcsession.cc
+++ b/talk/app/webrtc/webrtcsession.cc
@@ -650,13 +650,9 @@ bool WebRtcSession::Initialize(
}
// Find DSCP constraint.
- if (FindConstraint(
- constraints,
- MediaConstraintsInterface::kEnableDscp,
- &value, NULL)) {
- audio_options_.dscp = rtc::Optional<bool>(value);
- video_options_.dscp = rtc::Optional<bool>(value);
- }
+ if (FindConstraint(constraints, MediaConstraintsInterface::kEnableDscp,
+ &value, NULL))
+ channel_options_.enable_dscp = value;
// Find Suspend Below Min Bitrate constraint.
if (FindConstraint(
@@ -1809,7 +1805,7 @@ bool WebRtcSession::CreateChannels(const SessionDescription* desc) {
bool WebRtcSession::CreateVoiceChannel(const cricket::ContentInfo* content) {
voice_channel_.reset(channel_manager_->CreateVoiceChannel(
media_controller_, transport_controller_.get(), content->name, true,
- audio_options_));
+ channel_options_, audio_options_));
if (!voice_channel_) {
return false;
}
@@ -1826,7 +1822,7 @@ bool WebRtcSession::CreateVoiceChannel(const cricket::ContentInfo* content) {
bool WebRtcSession::CreateVideoChannel(const cricket::ContentInfo* content) {
video_channel_.reset(channel_manager_->CreateVideoChannel(
media_controller_, transport_controller_.get(), content->name, true,
- video_options_));
+ channel_options_, video_options_));
if (!video_channel_) {
return false;
}
« no previous file with comments | « talk/app/webrtc/webrtcsession.h ('k') | talk/app/webrtc/webrtcsession_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698