Chromium Code Reviews
Descriptionmedia: Don't create a new MediaCodec during AVDA teardown
OnDrainCompleted() is always called during AVDA teardown, and it
previously always called ResetCodecState() which resulted in
unnecessarily creating new MediaCodecs during shutdown whenever state_
was ERROR, or on older devices where flush() doesn't work.
Now we don't bother calling ResetCodecState() during destruction, and
we also don't try to recover from errors. Errors are generally
unrecoverable, so retrying is usually a bad idea.
BUG=688030
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
Review-Url: https://codereview.chromium.org/2662173002
Cr-Commit-Position: refs/heads/master@{#450565}
Committed: https://chromium.googlesource.com/chromium/src/+/1e1ea2bcd2e632ba3b3dcbd45ca3405771e57a9c
Patch Set 1 #Patch Set 2 : . #Patch Set 3 : rebase #
Messages
Total messages: 29 (16 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||