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

Issue 2864683002: Don't ReleaseCodecAndBundle in AVDA::ActualDestroy. (Closed)

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

Description

Don't ReleaseCodecAndBundle in AVDA::ActualDestroy. Previously, we were releasing the codec and surface bundle when destroying AVDA. However, if async codec allocation was in progress, then this would modify |codec_config_|. Even if no race condition was present, codec allocation would fail when it tried to dereference the surface bundle. This CL changes ActualDestroy to ReleaseCodec only. The surface bundle will be freed when the surface bundle is dropped during AVDA destruction (or when async codec allocation completes). BUG=718865 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;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/2864683002 Cr-Commit-Position: refs/heads/master@{#469833} Committed: https://chromium.googlesource.com/chromium/src/+/02ea6568c0b73b6c9873ea2f3aef44d77dc81a25

Patch Set 1 #

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

Messages

Total messages: 14 (10 generated)
liberato (no reviews please)
hopefully, this prevents the crashes that started happening in AVDA recently due to my earlier ...
3 years, 7 months ago (2017-05-05 18:29:39 UTC) #6
watk
lgtm Classic case of an error prone interface I would say. I have plans to ...
3 years, 7 months ago (2017-05-05 18:52:03 UTC) #7
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/2864683002/1
3 years, 7 months ago (2017-05-05 21:20:31 UTC) #11
commit-bot: I haz the power
3 years, 7 months ago (2017-05-06 00:50:51 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/02ea6568c0b73b6c9873ea2f3aef...

Powered by Google App Engine
This is Rietveld 408576698