aboutsummaryrefslogtreecommitdiff
path: root/cast/streaming/clock_drift_smoother.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cast/streaming/clock_drift_smoother.cc')
-rw-r--r--cast/streaming/clock_drift_smoother.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/cast/streaming/clock_drift_smoother.cc b/cast/streaming/clock_drift_smoother.cc
index bb829578..dbcca86e 100644
--- a/cast/streaming/clock_drift_smoother.cc
+++ b/cast/streaming/clock_drift_smoother.cc
@@ -8,12 +8,11 @@
#include "util/logging.h"
+namespace openscreen {
namespace cast {
-namespace streaming {
namespace {
-constexpr ClockDriftSmoother::Clock::time_point kNullTime =
- ClockDriftSmoother::Clock::time_point::min();
+constexpr Clock::time_point kNullTime = Clock::time_point::min();
}
ClockDriftSmoother::ClockDriftSmoother(Clock::duration time_constant)
@@ -25,7 +24,7 @@ ClockDriftSmoother::ClockDriftSmoother(Clock::duration time_constant)
ClockDriftSmoother::~ClockDriftSmoother() = default;
-ClockDriftSmoother::Clock::duration ClockDriftSmoother::Current() const {
+Clock::duration ClockDriftSmoother::Current() const {
OSP_DCHECK(last_update_time_ != kNullTime);
const double rounded_estimate = std::round(estimated_tick_offset_);
if (rounded_estimate < Clock::duration::min().count()) {
@@ -68,5 +67,5 @@ void ClockDriftSmoother::Update(Clock::time_point now,
// static
constexpr std::chrono::seconds ClockDriftSmoother::kDefaultTimeConstant;
-} // namespace streaming
} // namespace cast
+} // namespace openscreen