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

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

Issue 178763006: Enable round-tripping and updating of SourceBuffer timestamp offset (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase and rework so WSB::append() indicates updated timestamp offset 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.h
diff --git a/Source/modules/mediasource/SourceBuffer.h b/Source/modules/mediasource/SourceBuffer.h
index e6b9c93a7e314ed058bd25da159386ca3a40b504..9d7d1f39128cfda2b32424b9f8d0be8c1c506b0d 100644
--- a/Source/modules/mediasource/SourceBuffer.h
+++ b/Source/modules/mediasource/SourceBuffer.h
@@ -105,6 +105,10 @@ private:
bool isRemoved() const;
void scheduleEvent(const AtomicString& eventName);
+ // Coded frame processing during append may update timestamp offset. This helper
+ // does the append, then remembers the new offset only if it was updated by the append.
+ void appendAndUpdateTimestampOffset(const unsigned char* data, unsigned length);
+
void appendBufferInternal(const unsigned char*, unsigned, ExceptionState&);
void appendBufferAsyncPart();

Powered by Google App Engine
This is Rietveld 408576698