blob: ee6078d45aaf412e568ccc17055a873d07d8b2fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "cast/streaming/rtp_time.h"
#include <sstream>
namespace openscreen {
namespace cast {
std::ostream& operator<<(std::ostream& out, const RtpTimeDelta rhs) {
if (rhs.value_ >= 0)
out << "RTP+";
else
out << "RTP";
return out << rhs.value_;
}
std::ostream& operator<<(std::ostream& out, const RtpTimeTicks rhs) {
return out << "RTP@" << rhs.value_;
}
} // namespace cast
} // namespace openscreen
|