| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 CriticalSectionScoped cs(_critSect); | 155 CriticalSectionScoped cs(_critSect); |
| 156 | 156 |
| 157 _eventPtr = EventWrapper::Create(); | 157 _eventPtr = EventWrapper::Create(); |
| 158 | 158 |
| 159 if (_rtp->SetSendingStatus(true) != 0) | 159 if (_rtp->SetSendingStatus(true) != 0) |
| 160 { | 160 { |
| 161 throw "_rtp->SetSendingStatus"; | 161 throw "_rtp->SetSendingStatus"; |
| 162 exit(1); | 162 exit(1); |
| 163 } | 163 } |
| 164 | 164 |
| 165 _procThread = ThreadWrapper::CreateThread(ProcThreadFunction, this, | 165 _procThread = PlatformThread::CreateThread(ProcThreadFunction, this, |
| 166 "TestSenderReceiver"); | 166 "TestSenderReceiver"); |
| 167 | 167 |
| 168 _running = true; | 168 _running = true; |
| 169 | 169 |
| 170 if (_isReceiver) | 170 if (_isReceiver) |
| 171 { | 171 { |
| 172 if (_transport->StartReceiving(NR_OF_SOCKET_BUFFERS) != 0) | 172 if (_transport->StartReceiving(NR_OF_SOCKET_BUFFERS) != 0) |
| 173 { | 173 { |
| 174 throw "_transport->StartReceiving"; | 174 throw "_transport->StartReceiving"; |
| 175 exit(1); | 175 exit(1); |
| 176 } | 176 } |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 | 402 |
| 403 if (_sendRecCB) | 403 if (_sendRecCB) |
| 404 { | 404 { |
| 405 _sendRecCB->OnOnNetworkChanged(maxBitrateBps, | 405 _sendRecCB->OnOnNetworkChanged(maxBitrateBps, |
| 406 fractionLost, | 406 fractionLost, |
| 407 roundTripTimeMs, | 407 roundTripTimeMs, |
| 408 bwEstimateKbitMin, | 408 bwEstimateKbitMin, |
| 409 bwEstimateKbitMax); | 409 bwEstimateKbitMax); |
| 410 } | 410 } |
| 411 } | 411 } |
| OLD | NEW |