OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. |
| 3 * |
| 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 |
| 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ |
| 10 |
| 11 #include "webrtc/call/rtp_config.h" |
| 12 |
| 13 #include <sstream> |
| 14 |
| 15 namespace webrtc { |
| 16 |
| 17 std::string NackConfig::ToString() const { |
| 18 std::stringstream ss; |
| 19 ss << "{rtp_history_ms: " << rtp_history_ms; |
| 20 ss << '}'; |
| 21 return ss.str(); |
| 22 } |
| 23 |
| 24 std::string UlpfecConfig::ToString() const { |
| 25 std::stringstream ss; |
| 26 ss << "{ulpfec_payload_type: " << ulpfec_payload_type; |
| 27 ss << ", red_payload_type: " << red_payload_type; |
| 28 ss << ", red_rtx_payload_type: " << red_rtx_payload_type; |
| 29 ss << '}'; |
| 30 return ss.str(); |
| 31 } |
| 32 |
| 33 bool UlpfecConfig::operator==(const UlpfecConfig& other) const { |
| 34 return ulpfec_payload_type == other.ulpfec_payload_type && |
| 35 red_payload_type == other.red_payload_type && |
| 36 red_rtx_payload_type == other.red_rtx_payload_type; |
| 37 } |
| 38 } // namespace webrtc |
OLD | NEW |