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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 } | 352 } |
353 packet.AppendData(kReservedSpace); | 353 packet.AppendData(kReservedSpace); |
354 packet.AppendData(payload); | 354 packet.AppendData(payload); |
355 | 355 |
356 LOG(LS_VERBOSE) << "Sent RTP data packet: " | 356 LOG(LS_VERBOSE) << "Sent RTP data packet: " |
357 << " stream=" << found_stream->id << " ssrc=" << header.ssrc | 357 << " stream=" << found_stream->id << " ssrc=" << header.ssrc |
358 << ", seqnum=" << header.seq_num | 358 << ", seqnum=" << header.seq_num |
359 << ", timestamp=" << header.timestamp | 359 << ", timestamp=" << header.timestamp |
360 << ", len=" << payload.size(); | 360 << ", len=" << payload.size(); |
361 | 361 |
362 MediaChannel::SendPacket(&packet); | 362 MediaChannel::SendPacket(&packet, rtc::PacketOptions()); |
363 send_limiter_->Use(packet_len, now); | 363 send_limiter_->Use(packet_len, now); |
364 if (result) { | 364 if (result) { |
365 *result = SDR_SUCCESS; | 365 *result = SDR_SUCCESS; |
366 } | 366 } |
367 return true; | 367 return true; |
368 } | 368 } |
369 | 369 |
370 } // namespace cricket | 370 } // namespace cricket |
OLD | NEW |