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

Unified Diff: webkit/media/webmediaplayer_impl.cc

Issue 10823300: Make ChunkDemuxer::SetTimestampOffset take a TimeDelta instead of double (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comment Created 8 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/filters/chunk_demuxer_unittest.cc ('k') | webkit/media/webmediaplayer_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/media/webmediaplayer_impl.cc
diff --git a/webkit/media/webmediaplayer_impl.cc b/webkit/media/webmediaplayer_impl.cc
index 90bad00cf554e31a6f7e667f78d9a42d970d6408..706ca8411d0ec36febdc81a3acccf6874c5a5df1 100644
--- a/webkit/media/webmediaplayer_impl.cc
+++ b/webkit/media/webmediaplayer_impl.cc
@@ -687,7 +687,9 @@ void WebMediaPlayerImpl::sourceEndOfStream(
bool WebMediaPlayerImpl::sourceSetTimestampOffset(const WebKit::WebString& id,
double offset) {
- return proxy_->DemuxerSetTimestampOffset(id.utf8().data(), offset);
+ base::TimeDelta time_offset = base::TimeDelta::FromMicroseconds(
+ offset * base::Time::kMicrosecondsPerSecond);
+ return proxy_->DemuxerSetTimestampOffset(id.utf8().data(), time_offset);
}
WebKit::WebMediaPlayer::MediaKeyException
« no previous file with comments | « media/filters/chunk_demuxer_unittest.cc ('k') | webkit/media/webmediaplayer_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698