| 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 cb21f8976ce25a7f81db98d88a78eadbd1ec51d8..68985681d69a621342075c38d6edf2fe5776e716 100644
|
| --- a/content/common/gpu/media/android_video_decode_accelerator.cc
|
| +++ b/content/common/gpu/media/android_video_decode_accelerator.cc
|
| @@ -540,12 +540,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.
|
| @@ -559,6 +553,11 @@ bool AndroidVideoDecodeAccelerator::QueueInput() {
|
| weak_this_factory_.GetWeakPtr(), bitstream_buffer.id()));
|
| bitstreams_notified_in_advance_.push_back(bitstream_buffer.id());
|
|
|
| + if (status != media::MEDIA_CODEC_OK) {
|
| + POST_ERROR(PLATFORM_FAILURE, "Failed to QueueInputBuffer: " << status);
|
| + return false;
|
| + }
|
| +
|
| return true;
|
| }
|
|
|
|
|