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

Unified Diff: content/common/gpu/media/android_video_encode_accelerator.cc

Issue 669623004: Switch to Lollipop APIs for MediaCodec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove getInputBufferCount() call Created 6 years, 2 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: content/common/gpu/media/android_video_encode_accelerator.cc
diff --git a/content/common/gpu/media/android_video_encode_accelerator.cc b/content/common/gpu/media/android_video_encode_accelerator.cc
index 2507ea41c1f9b3c6782adc3681186827433da991..014f1a0a9ef89efc9b2e1b8aeab7d299ed8f9efe 100644
--- a/content/common/gpu/media/android_video_encode_accelerator.cc
+++ b/content/common/gpu/media/android_video_encode_accelerator.cc
@@ -335,8 +335,8 @@ bool AndroidVideoEncodeAccelerator::DoOutputBuffersSuffice() {
// prepared to field multiple requests to RequireBitstreamBuffers().
int count = media_codec_->GetOutputBuffersCount();
size_t capacity = media_codec_->GetOutputBuffersCapacity();
- bool ret = media_codec_->GetOutputBuffers() && count <= num_output_buffers_ &&
- capacity <= output_buffers_capacity_;
+ bool ret = count <= num_output_buffers_ &&
+ capacity <= output_buffers_capacity_;
LOG_IF(ERROR, !ret) << "Need more/bigger buffers; before: "
<< num_output_buffers_ << "x" << output_buffers_capacity_
<< ", now: " << count << "x" << capacity;

Powered by Google App Engine
This is Rietveld 408576698