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

Unified Diff: Source/modules/mediasource/SourceBuffer.cpp

Issue 178763006: Enable round-tripping and updating of SourceBuffer timestamp offset (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rework to depend on Chromium side landing first and pass double* timestampOffset (no bool) 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
Index: Source/modules/mediasource/SourceBuffer.cpp
diff --git a/Source/modules/mediasource/SourceBuffer.cpp b/Source/modules/mediasource/SourceBuffer.cpp
index afdfb6edc57391912a38f216d65b9bc463d6698e..eb34c6bb3c230d8adb8f02a44c9311c3df833d92 100644
--- a/Source/modules/mediasource/SourceBuffer.cpp
+++ b/Source/modules/mediasource/SourceBuffer.cpp
@@ -534,7 +534,7 @@ void SourceBuffer::appendBufferAsyncPart()
// so that it can clear its end of stream state if necessary.
m_pendingAppendData.resize(1);
}
- m_webSourceBuffer->append(m_pendingAppendData.data(), appendSize);
+ m_webSourceBuffer->append(m_pendingAppendData.data(), appendSize, &m_timestampOffset);
// 3. Set the updating attribute to false.
m_updating = false;
@@ -688,8 +688,7 @@ void SourceBuffer::didReceiveDataForClient(const char* data, unsigned dataLength
WTF_LOG(Media, "SourceBuffer::didReceiveDataForClient(%d) %p", dataLength, this);
ASSERT(m_updating);
ASSERT(m_loader);
-
- m_webSourceBuffer->append(reinterpret_cast<const unsigned char*>(data), dataLength);
+ m_webSourceBuffer->append(reinterpret_cast<const unsigned char*>(data), dataLength, &m_timestampOffset);
}
void SourceBuffer::didFinishLoading()

Powered by Google App Engine
This is Rietveld 408576698