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

Unified Diff: media/filters/chunk_demuxer.h

Issue 8775035: Add support for incremental cluster parsing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: _ Created 9 years, 1 month 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 | « no previous file | media/filters/chunk_demuxer.cc » ('j') | media/webm/webm_cluster_parser.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/chunk_demuxer.h
diff --git a/media/filters/chunk_demuxer.h b/media/filters/chunk_demuxer.h
index b0f0d0286c057761a33c83736908c8d1360a006f..845df0872698c12d5dacb85614102aa1078e4ddc 100644
--- a/media/filters/chunk_demuxer.h
+++ b/media/filters/chunk_demuxer.h
@@ -81,13 +81,16 @@ class MEDIA_EXPORT ChunkDemuxer : public Demuxer {
// found.
bool SetupStreams();
- // Parse a cluster add add the buffers to the appropriate DemxuerStream.
- // |data| is expected to point to the beginning of a cluster element.
+ // Parse a cluster add add the buffers to the appropriate DemuxerStream.
+ // |data| is expected to point to the beginning of an element.
+ //
+ // |buffers_added| - Indicates whether Buffers were added to DemuxerStreams
+ // during the call. This is only valid if the return value > 0.
//
// Returns -1 if the parse fails.
// Returns 0 if more data is needed.
// Returns the number of bytes parsed on success.
- int ParseCluster_Locked(const uint8* data, int size);
+ int ParseCluster_Locked(const uint8* data, int size, bool* buffers_added);
// Reports an error and puts the demuxer in a state where it won't accept more
// data.
« no previous file with comments | « no previous file | media/filters/chunk_demuxer.cc » ('j') | media/webm/webm_cluster_parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698