Index: webrtc/voice_engine/voe_network_impl.cc |
diff --git a/webrtc/voice_engine/voe_network_impl.cc b/webrtc/voice_engine/voe_network_impl.cc |
index 556204829518fd84453f376e882238f70fd80210..6941629d79debb6eef8f2cb9e1dbbcc076c61c05 100644 |
--- a/webrtc/voice_engine/voe_network_impl.cc |
+++ b/webrtc/voice_engine/voe_network_impl.cc |
@@ -43,7 +43,7 @@ int VoENetworkImpl::RegisterExternalTransport(int channel, |
LOG_F(LS_ERROR) << "Failed to locate channel: " << channel; |
return -1; |
} |
- return channelPtr->RegisterExternalTransport(transport); |
+ return channelPtr->RegisterExternalTransport(&transport); |
} |
int VoENetworkImpl::DeRegisterExternalTransport(int channel) { |
@@ -84,8 +84,8 @@ int VoENetworkImpl::ReceivedRTPPacket(int channel, |
LOG_F(LS_ERROR) << "No external transport for channel: " << channel; |
return -1; |
} |
- return channelPtr->ReceivedRTPPacket((const int8_t*)data, length, |
- packet_time); |
+ return channelPtr->ReceivedRTPPacket(static_cast<const uint8_t*>(data), |
+ length, packet_time); |
} |
int VoENetworkImpl::ReceivedRTCPPacket(int channel, |
@@ -107,7 +107,8 @@ int VoENetworkImpl::ReceivedRTCPPacket(int channel, |
LOG_F(LS_ERROR) << "No external transport for channel: " << channel; |
return -1; |
} |
- return channelPtr->ReceivedRTCPPacket((const int8_t*)data, length); |
+ return channelPtr->ReceivedRTCPPacket(static_cast<const uint8_t*>(data), |
+ length); |
} |
} // namespace webrtc |