| Index: webrtc/api/datachannel.cc
|
| diff --git a/webrtc/api/datachannel.cc b/webrtc/api/datachannel.cc
|
| index 9812e9bb6a68cdddd50087329f0c49a82f9309e9..13ded6a0bfe768a09785d04f7718e8a9ab079a1b 100644
|
| --- a/webrtc/api/datachannel.cc
|
| +++ b/webrtc/api/datachannel.cc
|
| @@ -16,7 +16,7 @@
|
| #include "webrtc/api/sctputils.h"
|
| #include "webrtc/base/logging.h"
|
| #include "webrtc/base/refcount.h"
|
| -#include "webrtc/media/sctp/sctpdataengine.h"
|
| +#include "webrtc/media/sctp/sctptransportinternal.h"
|
|
|
| namespace webrtc {
|
|
|
| @@ -328,8 +328,7 @@ void DataChannel::OnMessage(rtc::Message* msg) {
|
| }
|
| }
|
|
|
| -void DataChannel::OnDataReceived(cricket::DataChannel* channel,
|
| - const cricket::ReceiveDataParams& params,
|
| +void DataChannel::OnDataReceived(const cricket::ReceiveDataParams& params,
|
| const rtc::CopyOnWriteBuffer& payload) {
|
| uint32_t expected_ssrc =
|
| (data_channel_type_ == cricket::DCT_RTP) ? receive_ssrc_ : config_.id;
|
| @@ -390,9 +389,8 @@ void DataChannel::OnDataReceived(cricket::DataChannel* channel,
|
| }
|
| }
|
|
|
| -void DataChannel::OnStreamClosedRemotely(uint32_t sid) {
|
| - if (data_channel_type_ == cricket::DCT_SCTP &&
|
| - sid == static_cast<uint32_t>(config_.id)) {
|
| +void DataChannel::OnStreamClosedRemotely(int sid) {
|
| + if (data_channel_type_ == cricket::DCT_SCTP && sid == config_.id) {
|
| Close();
|
| }
|
| }
|
|
|