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

Unified Diff: media/base/time_source.h

Issue 1160853006: Improve audio/video sync during underflow, reduce underflow frequency. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments. Created 5 years, 6 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 | « no previous file | media/base/wall_clock_time_source.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/time_source.h
diff --git a/media/base/time_source.h b/media/base/time_source.h
index 08cf0f030bd01d6b778c88d001ec69e4335a95ff..496eced81a4996f63a1162716df651ec27d6a8fc 100644
--- a/media/base/time_source.h
+++ b/media/base/time_source.h
@@ -49,9 +49,12 @@ class MEDIA_EXPORT TimeSource {
// will never go backwards, the frequency at which they update may be low.
virtual base::TimeDelta CurrentMediaTime() = 0;
- // Converts a vector of media timestamps into a vector of wall clock times. If
- // the media time is stopped, returns false and does not modify the output
- // vector. Returns true and converts all timestamps otherwise.
+ // Converts a vector of media timestamps into a vector of wall clock times; if
+ // the media time is stopped, returns false, otherwise returns true. Even if
+ // time is stopped, timestamps will be converted.
+ //
+ // Passing an empty |media_timestamps| vector will return the last known media
+ // time as a wall clock time.
//
// Within a single call to GetWallClockTimes() the returned wall clock times
// are a strictly increasing function of the given media times. There is no
« no previous file with comments | « no previous file | media/base/wall_clock_time_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698