blob: 3621f7289037005fd1f0c8b220aa54b45110b67f [file] [log] [blame]
Stefan Holmer1acbd682017-09-01 15:29:28 +02001/*
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
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020011#include "call/rtp_config.h"
Stefan Holmer1acbd682017-09-01 15:29:28 +020012
13#include <sstream>
14
15namespace webrtc {
16
17std::string NackConfig::ToString() const {
18 std::stringstream ss;
19 ss << "{rtp_history_ms: " << rtp_history_ms;
20 ss << '}';
21 return ss.str();
22}
23
24std::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
33bool 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