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; |
} |