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

Unified Diff: media/base/pipeline_impl.h

Issue 6822019: Fix erratic HTML5 audio playback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nit Created 9 years, 8 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/audio/audio_output_dispatcher.cc ('k') | media/base/pipeline_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/pipeline_impl.h
diff --git a/media/base/pipeline_impl.h b/media/base/pipeline_impl.h
index 5dcbcea366bb4b0e6d840256172d926fa3216750..7b5fe4a6c2dbd3fde22fe730e1674a9ad0e306b5 100644
--- a/media/base/pipeline_impl.h
+++ b/media/base/pipeline_impl.h
@@ -330,6 +330,9 @@ class PipelineImpl : public Pipeline, public FilterHost {
// Whether or not an error triggered the teardown.
bool error_caused_teardown_;
+ // Whether or not a playback rate change should be done once seeking is done.
+ bool playback_rate_change_pending_;
+
// Duration of the media in microseconds. Set by filters.
base::TimeDelta duration_;
@@ -372,6 +375,9 @@ class PipelineImpl : public Pipeline, public FilterHost {
// the filters.
float playback_rate_;
+ // Playback rate to set when the current seek has finished.
+ float pending_playback_rate_;
+
// Reference clock. Keeps track of current playback time. Uses system
// clock and linear interpolation, but can have its time manually set
// by filters.
« no previous file with comments | « media/audio/audio_output_dispatcher.cc ('k') | media/base/pipeline_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698