Index: content/browser/renderer_host/media/video_capture_buffer_pool.cc |
diff --git a/content/browser/renderer_host/media/video_capture_buffer_pool.cc b/content/browser/renderer_host/media/video_capture_buffer_pool.cc |
index 92523756eff74e7dc3b7b6a3ca1076ae47017f0e..f583a94adaa638396431ecda7017aa787d99aaa2 100644 |
--- a/content/browser/renderer_host/media/video_capture_buffer_pool.cc |
+++ b/content/browser/renderer_host/media/video_capture_buffer_pool.cc |
@@ -19,6 +19,7 @@ const int VideoCaptureBufferPool::kInvalidId = -1; |
VideoCaptureBufferPool::VideoCaptureBufferPool(int count) |
: count_(count), |
next_buffer_id_(0) { |
+ DCHECK_GT(count, 0); |
} |
VideoCaptureBufferPool::~VideoCaptureBufferPool() { |
@@ -168,4 +169,3 @@ VideoCaptureBufferPool::Buffer* VideoCaptureBufferPool::GetBuffer( |
} |
} // namespace content |
- |