diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-21 01:56:53 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-21 01:56:53 +0000 |
commit | 81fb2509ea1038d04a373a1045c7658927ad85b5 (patch) | |
tree | 51de6aa44142c71baf9d35e39f417317cd7d310a /media/base/buffers.h | |
parent | 2125f7df5af31857e7698264ed42e616d8271b63 (diff) | |
download | chromium_src-81fb2509ea1038d04a373a1045c7658927ad85b5.zip chromium_src-81fb2509ea1038d04a373a1045c7658927ad85b5.tar.gz chromium_src-81fb2509ea1038d04a373a1045c7658927ad85b5.tar.bz2 |
Suppress slider thumb jumping around during seeking
BUG=19396
TEST=Open a video, seek to any position, the thumb should stops a bit and then goes forward from there.
Preventing the slider thumb from jumping around after seek
by freezing the clock until we get a valid time update from
the audio renderer.
Review URL: http://codereview.chromium.org/173072
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23937 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/buffers.h')
-rw-r--r-- | media/base/buffers.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/media/base/buffers.h b/media/base/buffers.h index 2b4f25b..27ad130 100644 --- a/media/base/buffers.h +++ b/media/base/buffers.h @@ -35,6 +35,9 @@ namespace media { class StreamSample : public base::RefCountedThreadSafe<StreamSample> { public: + // Constant timestamp value to indicate an invalid or missing timestamp. + static const base::TimeDelta kInvalidTimestamp; + // Returns the timestamp of this buffer in microseconds. base::TimeDelta GetTimestamp() const { return timestamp_; |