OLD | NEW |
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 Loading... |
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 |
OLD | NEW |