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

Issue 2563533002: media: AVDA now doesn't queue EOS for a flush if the codec is empty (Closed)

Created:
4 years ago by watk
Modified:
4 years ago
Reviewers:
DaleCurtis, AndyWu
CC:
chromium-reviews, feature-media-reviews_chromium.org, liberato (no reviews please), piman+watch_chromium.org, posciak+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

media: AVDA now doesn't queue EOS for a flush if the codec is empty Apparently some MediaCodecs consider it an error to receive an EOS buffer as their first input. So now we skip queueing the EOS if there are no pending buffers in the decoder and no pending inputs. BUG=672268 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/89afd26f42c7a417841e1657499f5216262906d2 Cr-Commit-Position: refs/heads/master@{#437436}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix a bug #

Total comments: 5

Patch Set 3 : braces #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -69 lines) Patch
M media/gpu/android_video_decode_accelerator.h View 1 3 chunks +4 lines, -7 lines 0 comments Download
M media/gpu/android_video_decode_accelerator.cc View 1 2 10 chunks +45 lines, -62 lines 0 comments Download

Messages

Total messages: 38 (25 generated)
watk
https://codereview.chromium.org/2563533002/diff/1/media/gpu/android_video_decode_accelerator.cc File media/gpu/android_video_decode_accelerator.cc (left): https://codereview.chromium.org/2563533002/diff/1/media/gpu/android_video_decode_accelerator.cc#oldcode868 media/gpu/android_video_decode_accelerator.cc:868: if (state_ == SURFACE_DESTROYED || defer_surface_creation_) These both imply ...
4 years ago (2016-12-07 23:30:32 UTC) #5
DaleCurtis
lgtm https://codereview.chromium.org/2563533002/diff/1/media/gpu/android_video_decode_accelerator.cc File media/gpu/android_video_decode_accelerator.cc (right): https://codereview.chromium.org/2563533002/diff/1/media/gpu/android_video_decode_accelerator.cc#newcode969 media/gpu/android_video_decode_accelerator.cc:969: // reset because MediaCodec might hang in release() ...
4 years ago (2016-12-08 00:11:14 UTC) #6
DaleCurtis
https://codereview.chromium.org/2563533002/diff/1/media/gpu/android_video_decode_accelerator.cc File media/gpu/android_video_decode_accelerator.cc (right): https://codereview.chromium.org/2563533002/diff/1/media/gpu/android_video_decode_accelerator.cc#newcode1125 media/gpu/android_video_decode_accelerator.cc:1125: while (!pending_bitstream_records_.empty()) Because I was curious and have been ...
4 years ago (2016-12-08 00:29:35 UTC) #9
watk
PTAL https://codereview.chromium.org/2563533002/diff/20001/media/gpu/android_video_decode_accelerator.cc File media/gpu/android_video_decode_accelerator.cc (right): https://codereview.chromium.org/2563533002/diff/20001/media/gpu/android_video_decode_accelerator.cc#newcode1032 media/gpu/android_video_decode_accelerator.cc:1032: !media_codec_) This was caught by the unittest!! yay ...
4 years ago (2016-12-08 02:29:44 UTC) #12
DaleCurtis
lgtm https://codereview.chromium.org/2563533002/diff/20001/media/gpu/android_video_decode_accelerator.cc File media/gpu/android_video_decode_accelerator.cc (right): https://codereview.chromium.org/2563533002/diff/20001/media/gpu/android_video_decode_accelerator.cc#newcode1032 media/gpu/android_video_decode_accelerator.cc:1032: !media_codec_) On 2016/12/08 at 02:29:44, watk wrote: > ...
4 years ago (2016-12-08 19:08:40 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2563533002/40001
4 years ago (2016-12-08 19:45:42 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/82688)
4 years ago (2016-12-08 21:22:37 UTC) #24
AndyWu
https://codereview.chromium.org/2563533002/diff/20001/media/gpu/android_video_decode_accelerator.cc File media/gpu/android_video_decode_accelerator.cc (right): https://codereview.chromium.org/2563533002/diff/20001/media/gpu/android_video_decode_accelerator.cc#newcode1005 media/gpu/android_video_decode_accelerator.cc:1005: switch (*drain_type_) { enumeration value 'DRAIN_TYPE_NONE' not handled in ...
4 years ago (2016-12-08 21:27:03 UTC) #26
watk
https://codereview.chromium.org/2563533002/diff/20001/media/gpu/android_video_decode_accelerator.cc File media/gpu/android_video_decode_accelerator.cc (right): https://codereview.chromium.org/2563533002/diff/20001/media/gpu/android_video_decode_accelerator.cc#newcode1005 media/gpu/android_video_decode_accelerator.cc:1005: switch (*drain_type_) { On 2016/12/08 21:27:02, AndyWu wrote: > ...
4 years ago (2016-12-08 22:19:46 UTC) #27
AndyWu
> NONE was removed from the enum and is now represented by an optional. Was ...
4 years ago (2016-12-08 22:30:30 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2563533002/40001
4 years ago (2016-12-09 01:39:46 UTC) #34
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-09 02:23:27 UTC) #36
commit-bot: I haz the power
4 years ago (2016-12-09 02:25:48 UTC) #38
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/89afd26f42c7a417841e1657499f5216262906d2
Cr-Commit-Position: refs/heads/master@{#437436}

Powered by Google App Engine
This is Rietveld 408576698