Index: content/common/gpu/media/android_video_decode_accelerator.cc |
diff --git a/content/common/gpu/media/android_video_decode_accelerator.cc b/content/common/gpu/media/android_video_decode_accelerator.cc |
index e4d78025043dcdbcc4231b344fe6a0909231574f..37c4801c3031e3409dfa7b7c915374f9aa48469b 100644 |
--- a/content/common/gpu/media/android_video_decode_accelerator.cc |
+++ b/content/common/gpu/media/android_video_decode_accelerator.cc |
@@ -536,12 +536,6 @@ bool AndroidVideoDecodeAccelerator::QueueInput() { |
pending_bitstream_buffers_.pop(); |
TRACE_COUNTER1("media", "AVDA::PendingBitstreamBufferCount", |
pending_bitstream_buffers_.size()); |
- |
- if (status != media::MEDIA_CODEC_OK) { |
- POST_ERROR(PLATFORM_FAILURE, "Failed to QueueInputBuffer: " << status); |
- return false; |
- } |
- |
// We should call NotifyEndOfBitstreamBuffer(), when no more decoded output |
// will be returned from the bitstream buffer. However, MediaCodec API is |
// not enough to guarantee it. |
@@ -555,6 +549,11 @@ bool AndroidVideoDecodeAccelerator::QueueInput() { |
weak_this_factory_.GetWeakPtr(), bitstream_buffer.id())); |
bitstreams_notified_in_advance_.push_back(bitstream_buffer.id()); |
liberato (no reviews please)
2016/03/29 20:17:25
i was going to say that |bitstreams_notified_in_ad
|
+ if (status != media::MEDIA_CODEC_OK) { |
+ POST_ERROR(PLATFORM_FAILURE, "Failed to QueueInputBuffer: " << status); |
+ return false; |
+ } |
+ |
return true; |
} |