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

Unified Diff: media/base/clock_impl.cc

Issue 173072: Suppress slider thumb jumping around during seeking... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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/buffers.cc ('k') | media/base/pipeline_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/clock_impl.cc
===================================================================
--- media/base/clock_impl.cc (revision 23852)
+++ media/base/clock_impl.cc (working copy)
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "base/logging.h"
+#include "media/base/buffers.h"
#include "media/base/clock_impl.h"
namespace media {
@@ -32,6 +33,10 @@
}
void ClockImpl::SetTime(const base::TimeDelta& time) {
+ if (time == StreamSample::kInvalidTimestamp) {
+ NOTREACHED();
+ return;
+ }
if (playing_) {
reference_ = time_provider_();
}
« no previous file with comments | « media/base/buffers.cc ('k') | media/base/pipeline_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698