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

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

Issue 178763006: Enable round-tripping and updating of SourceBuffer timestamp offset (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/WebKitSourceBuffer.cpp
diff --git a/Source/modules/mediasource/WebKitSourceBuffer.cpp b/Source/modules/mediasource/WebKitSourceBuffer.cpp
index fa82ac6c118ab30a7fc3426231b03a012401edcc..f290939b66704b8d17349b92a71af3267ca516f4 100644
--- a/Source/modules/mediasource/WebKitSourceBuffer.cpp
+++ b/Source/modules/mediasource/WebKitSourceBuffer.cpp
@@ -139,6 +139,12 @@ void WebKitSourceBuffer::append(PassRefPtr<Uint8Array> data, ExceptionState& exc
// Steps 6 & beyond are handled by m_webSourceBuffer.
m_webSourceBuffer->append(data->data(), data->length());
+
+ // Retrieve the implementation's possibly updated timestamp offset resulting
+ // from the append. In reality, since this prefixed API does not support
+ // "sequence" append mode, the offset should not have changed due to
+ // append processing.
+ m_timestampOffset = m_webSourceBuffer->getTimestampOffset();
acolwell GONE FROM CHROMIUM 2014/02/25 17:50:57 Remove this. As your comment states, the timestamp
wolenetz 2014/02/25 20:33:32 Done.
}
void WebKitSourceBuffer::abort(ExceptionState& exceptionState)

Powered by Google App Engine
This is Rietveld 408576698