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

Unified Diff: content/renderer/media/websourcebuffer_impl.cc

Issue 178153004: Enable round-tripping and updating of WebSourceBufferImpl timestamp offset (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and rework to plumb double* timestamp_offset param into SourceState. Created 6 years, 10 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 | « content/renderer/media/websourcebuffer_impl.h ('k') | media/filters/chunk_demuxer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/websourcebuffer_impl.cc
diff --git a/content/renderer/media/websourcebuffer_impl.cc b/content/renderer/media/websourcebuffer_impl.cc
index a7d8d8a537803b4f9a2a8bdf42777af21720a5a0..686307640f099ad5f49db0531ea51129f043e124 100644
--- a/content/renderer/media/websourcebuffer_impl.cc
+++ b/content/renderer/media/websourcebuffer_impl.cc
@@ -60,7 +60,14 @@ blink::WebTimeRanges WebSourceBufferImpl::buffered() {
}
void WebSourceBufferImpl::append(const unsigned char* data, unsigned length) {
- demuxer_->AppendData(id_, data, length);
+ append(data, length, NULL);
+}
+
+void WebSourceBufferImpl::append(
+ const unsigned char* data,
+ unsigned length,
+ double* timestamp_offset) {
+ demuxer_->AppendData(id_, data, length, timestamp_offset);
}
void WebSourceBufferImpl::abort() {
« no previous file with comments | « content/renderer/media/websourcebuffer_impl.h ('k') | media/filters/chunk_demuxer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698