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

Unified Diff: media/filters/chunk_demuxer.h

Issue 10558011: Fix ChunkDemuxer so it properly outputs buffered ranges. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 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 | « no previous file | media/filters/chunk_demuxer.cc » ('j') | media/filters/chunk_demuxer.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 5945526aae61b2f58d86a2a62b8d1601ea0ae907..6cab74a6ac71a43e2291a2dc8782a1462836620d 100644
--- a/media/filters/chunk_demuxer.h
+++ b/media/filters/chunk_demuxer.h
@@ -125,6 +125,13 @@ class MEDIA_EXPORT ChunkDemuxer : public Demuxer {
bool CopyIntoRanges(
const SourceBufferStream::TimespanList& timespans,
Ranges* ranges_out) const;
+
+ // Computes the intersection between the video & audio
+ // buffered ranges.
+ // Returns true if the intersection was computed and stored in |ranges_out|.
+ // Returns false if no data was buffered.
+ bool ComputeIntersection(Ranges* ranges_out) const;
Ami GONE FROM CHROMIUM 2012/06/18 16:18:31 I don't get why make the return value bool instead
acolwell GONE FROM CHROMIUM 2012/06/19 06:12:34 Done.
+
void AddIntersectionRange(
SourceBufferStream::Timespan timespan_a,
SourceBufferStream::Timespan timespan_b,
@@ -142,8 +149,6 @@ class MEDIA_EXPORT ChunkDemuxer : public Demuxer {
scoped_refptr<ChunkDemuxerStream> audio_;
scoped_refptr<ChunkDemuxerStream> video_;
- int64 buffered_bytes_;
-
base::TimeDelta duration_;
typedef std::map<std::string, StreamParser*> StreamParserMap;
« no previous file with comments | « no previous file | media/filters/chunk_demuxer.cc » ('j') | media/filters/chunk_demuxer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698