blob: ee6078d45aaf412e568ccc17055a873d07d8b2fc [file] [log] [blame]
// 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