Index: talk/media/webrtc/webrtcvoiceengine.cc |
diff --git a/talk/media/webrtc/webrtcvoiceengine.cc b/talk/media/webrtc/webrtcvoiceengine.cc |
index ce31273cbfcada65ffcb2d0bb1515f0a14146b95..2ee30015fca9a8ed2f299d00eccda4916742d8b1 100644 |
--- a/talk/media/webrtc/webrtcvoiceengine.cc |
+++ b/talk/media/webrtc/webrtcvoiceengine.cc |
@@ -2948,8 +2948,12 @@ void WebRtcVoiceMediaChannel::OnPacketReceived( |
// If hooked up to a "Call", forward packet there too. |
if (call_) { |
- call_->Receiver()->DeliverPacket(webrtc::MediaType::AUDIO, |
- reinterpret_cast<const uint8_t*>(packet->data()), packet->size()); |
+ const webrtc::PacketTime webrtc_packet_time(packet_time.timestamp, |
+ packet_time.not_before); |
+ call_->Receiver()->DeliverPacket( |
+ webrtc::MediaType::AUDIO, |
+ reinterpret_cast<const uint8_t*>(packet->data()), packet->size(), |
+ webrtc_packet_time); |
} |
// Pick which channel to send this packet to. If this packet doesn't match |
@@ -2989,8 +2993,12 @@ void WebRtcVoiceMediaChannel::OnRtcpReceived( |
// If hooked up to a "Call", forward packet there too. |
if (call_) { |
- call_->Receiver()->DeliverPacket(webrtc::MediaType::AUDIO, |
- reinterpret_cast<const uint8_t*>(packet->data()), packet->size()); |
+ const webrtc::PacketTime webrtc_packet_time(packet_time.timestamp, |
+ packet_time.not_before); |
+ call_->Receiver()->DeliverPacket( |
+ webrtc::MediaType::AUDIO, |
+ reinterpret_cast<const uint8_t*>(packet->data()), packet->size(), |
+ webrtc_packet_time); |
} |
// Sending channels need all RTCP packets with feedback information. |