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

Unified Diff: webrtc/media/sctp/sctpdataengine.cc

Issue 2539813003: Set the preferred DSCP value for Rtp data channel to be DSCP_AF41. (Closed)
Patch Set: Remove the default parameter. Created 4 years 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 | « webrtc/media/sctp/sctpdataengine.h ('k') | webrtc/media/sctp/sctpdataengine_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/sctp/sctpdataengine.cc
diff --git a/webrtc/media/sctp/sctpdataengine.cc b/webrtc/media/sctp/sctpdataengine.cc
index 79754251e3a26e848cfb43d0a1aa3547458e715a..45dfad9e052a3bb9738e797064221f66a0972668 100644
--- a/webrtc/media/sctp/sctpdataengine.cc
+++ b/webrtc/media/sctp/sctpdataengine.cc
@@ -333,11 +333,12 @@ SctpDataEngine::~SctpDataEngine() {}
// Called on the worker thread.
DataMediaChannel* SctpDataEngine::CreateChannel(
- DataChannelType data_channel_type) {
+ DataChannelType data_channel_type,
+ const MediaConfig& config) {
if (data_channel_type != DCT_SCTP) {
return NULL;
}
- return new SctpDataMediaChannel(rtc::Thread::Current());
+ return new SctpDataMediaChannel(rtc::Thread::Current(), config);
}
// static
@@ -378,15 +379,16 @@ int SctpDataMediaChannel::SendThresholdCallback(struct socket* sock,
return 0;
}
-SctpDataMediaChannel::SctpDataMediaChannel(rtc::Thread* thread)
- : worker_thread_(thread),
+SctpDataMediaChannel::SctpDataMediaChannel(rtc::Thread* thread,
+ const MediaConfig& config)
+ : DataMediaChannel(config),
+ worker_thread_(thread),
local_port_(kSctpDefaultPort),
remote_port_(kSctpDefaultPort),
sock_(NULL),
sending_(false),
receiving_(false),
- debug_name_("SctpDataMediaChannel") {
-}
+ debug_name_("SctpDataMediaChannel") {}
SctpDataMediaChannel::~SctpDataMediaChannel() {
CloseSctpSocket();
« no previous file with comments | « webrtc/media/sctp/sctpdataengine.h ('k') | webrtc/media/sctp/sctpdataengine_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698