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

Unified Diff: media/filters/source_buffer_stream.h

Issue 1235403002: Change ChunkDemuxerStream/SourceBufferStream memory limit to size_t type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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: media/filters/source_buffer_stream.h
diff --git a/media/filters/source_buffer_stream.h b/media/filters/source_buffer_stream.h
index afef6f74202dc025ad202083a4a2dcca842c3d22..6c43f6ed421dbe39b7d9e92baa97ea3327dbf423 100644
--- a/media/filters/source_buffer_stream.h
+++ b/media/filters/source_buffer_stream.h
@@ -142,9 +142,7 @@ class MEDIA_EXPORT SourceBufferStream {
// yet.
base::TimeDelta GetMaxInterbufferDistance() const;
- void set_memory_limit(int memory_limit) {
- memory_limit_ = memory_limit;
- }
+ void SetMemoryLimit(size_t memory_limit);
private:
friend class SourceBufferStreamTest;
@@ -396,7 +394,7 @@ class MEDIA_EXPORT SourceBufferStream {
base::TimeDelta max_interbuffer_distance_;
// The maximum amount of data in bytes the stream will keep in memory.
- int memory_limit_;
+ size_t memory_limit_;
// Indicates that a kConfigChanged status has been reported by GetNextBuffer()
// and GetCurrentXXXDecoderConfig() must be called to update the current

Powered by Google App Engine
This is Rietveld 408576698