Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Unified Diff: media/base/wall_clock_time_source.cc

Issue 2322393002: Clear reference time after SetMediaTime in video-only time source. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/time_source.h ('k') | media/base/wall_clock_time_source_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/wall_clock_time_source.cc
diff --git a/media/base/wall_clock_time_source.cc b/media/base/wall_clock_time_source.cc
index 16a1a30fbbe5be784b9963965290d74e2aceadba..911bf7cf884a936750793f9dc971176a7abf17d8 100644
--- a/media/base/wall_clock_time_source.cc
+++ b/media/base/wall_clock_time_source.cc
@@ -50,6 +50,7 @@ void WallClockTimeSource::SetMediaTime(base::TimeDelta time) {
base::AutoLock auto_lock(lock_);
CHECK(!ticking_);
base_timestamp_ = time;
+ reference_time_ = base::TimeTicks();
}
base::TimeDelta WallClockTimeSource::CurrentMediaTime() {
« no previous file with comments | « media/base/time_source.h ('k') | media/base/wall_clock_time_source_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698