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/pipeline_impl.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/pipeline_impl.h')
-rw-r--r-- | media/base/pipeline_impl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/media/base/pipeline_impl.h b/media/base/pipeline_impl.h index 383969d..c448106 100644 --- a/media/base/pipeline_impl.h +++ b/media/base/pipeline_impl.h @@ -308,6 +308,11 @@ class PipelineImpl : public Pipeline, public FilterHost { // by filters. ClockImpl clock_; + // If this value is set to true, then |clock_| is paused and we are waiting + // for an update of the clock greater than or equal to the elapsed time to + // start the clock. + bool waiting_for_clock_update_; + // Status of the pipeline. Initialized to PIPELINE_OK which indicates that // the pipeline is operating correctly. Any other value indicates that the // pipeline is stopped or is stopping. Clients can call the Stop() method to |