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

Side by Side Diff: talk/media/base/rtpdataengine.cc

Issue 1363573002: Wire up transport sequence number / send time callbacks to webrtc via libjingle. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Cleanups. Created 5 years, 2 months 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 } 353 }
354 packet.AppendData(kReservedSpace); 354 packet.AppendData(kReservedSpace);
355 packet.AppendData(payload); 355 packet.AppendData(payload);
356 356
357 LOG(LS_VERBOSE) << "Sent RTP data packet: " 357 LOG(LS_VERBOSE) << "Sent RTP data packet: "
358 << " stream=" << found_stream->id << " ssrc=" << header.ssrc 358 << " stream=" << found_stream->id << " ssrc=" << header.ssrc
359 << ", seqnum=" << header.seq_num 359 << ", seqnum=" << header.seq_num
360 << ", timestamp=" << header.timestamp 360 << ", timestamp=" << header.timestamp
361 << ", len=" << payload.size(); 361 << ", len=" << payload.size();
362 362
363 MediaChannel::SendPacket(&packet); 363 MediaChannel::SendPacket(&packet, rtc::PacketOptions());
364 send_limiter_->Use(packet_len, now); 364 send_limiter_->Use(packet_len, now);
365 if (result) { 365 if (result) {
366 *result = SDR_SUCCESS; 366 *result = SDR_SUCCESS;
367 } 367 }
368 return true; 368 return true;
369 } 369 }
370 370
371 } // namespace cricket 371 } // namespace cricket
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698