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

Issue 10828079: Fix a renderer crash when media elements get deleted (Closed)

Created:
8 years, 4 months ago by qinmin
Modified:
8 years, 4 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Fix a renderer crash when media elements get deleted When media elements got deleted, stream_texture_factory_ will get deleted before video_frame_. This causes the callback function to execute with a null pointer. Move the DestroyStreamTexture call in to WMPA dtor. BUG=138827 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149379

Patch Set 1 #

Total comments: 2

Patch Set 2 : addressing comments #

Patch Set 3 : remove createStreamTexture call #

Total comments: 2

Patch Set 4 : rebase the patch to TOT #

Patch Set 5 : fixing merge conflicts #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -31 lines) Patch
M webkit/media/android/webmediaplayer_android.h View 1 1 chunk +0 lines, -4 lines 0 comments Download
M webkit/media/android/webmediaplayer_android.cc View 1 2 3 4 4 chunks +14 lines, -27 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
qinmin
8 years, 4 months ago (2012-07-30 21:09:38 UTC) #1
Ami GONE FROM CHROMIUM
http://codereview.chromium.org/10828079/diff/1/webkit/media/android/webmediaplayer_android.cc File webkit/media/android/webmediaplayer_android.cc (right): http://codereview.chromium.org/10828079/diff/1/webkit/media/android/webmediaplayer_android.cc#newcode95 webkit/media/android/webmediaplayer_android.cc:95: if (stream_id_) Huh; I didn't realize there's only one ...
8 years, 4 months ago (2012-07-30 23:09:35 UTC) #2
qinmin
PTAL https://chromiumcodereview.appspot.com/10828079/diff/1/webkit/media/android/webmediaplayer_android.cc File webkit/media/android/webmediaplayer_android.cc (right): https://chromiumcodereview.appspot.com/10828079/diff/1/webkit/media/android/webmediaplayer_android.cc#newcode95 webkit/media/android/webmediaplayer_android.cc:95: if (stream_id_) We had some concerns previously on ...
8 years, 4 months ago (2012-07-31 22:07:52 UTC) #3
Ami GONE FROM CHROMIUM
lgtm https://chromiumcodereview.appspot.com/10828079/diff/7001/webkit/media/android/webmediaplayer_android.cc File webkit/media/android/webmediaplayer_android.cc (right): https://chromiumcodereview.appspot.com/10828079/diff/7001/webkit/media/android/webmediaplayer_android.cc#newcode87 webkit/media/android/webmediaplayer_android.cc:87: if (stream_texture_factory_.get()) { What use is this class ...
8 years, 4 months ago (2012-07-31 22:27:40 UTC) #4
qinmin
https://chromiumcodereview.appspot.com/10828079/diff/7001/webkit/media/android/webmediaplayer_android.cc File webkit/media/android/webmediaplayer_android.cc (right): https://chromiumcodereview.appspot.com/10828079/diff/7001/webkit/media/android/webmediaplayer_android.cc#newcode87 webkit/media/android/webmediaplayer_android.cc:87: if (stream_texture_factory_.get()) { This is currently being used by ...
8 years, 4 months ago (2012-07-31 22:52:33 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/10828079/7001
8 years, 4 months ago (2012-07-31 22:52:55 UTC) #6
commit-bot: I haz the power
Failed to apply patch for webkit/media/android/webmediaplayer_android.cc: While running patch -p1 --forward --force; patching file webkit/media/android/webmediaplayer_android.cc ...
8 years, 4 months ago (2012-07-31 22:52:56 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/10828079/7005
8 years, 4 months ago (2012-08-01 01:38:53 UTC) #8
commit-bot: I haz the power
Try job failure for 10828079-7005 (retry) on win_rel for step "interactive_ui_tests". It's a second try, ...
8 years, 4 months ago (2012-08-01 03:47:43 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/10828079/7005
8 years, 4 months ago (2012-08-01 04:20:51 UTC) #10
commit-bot: I haz the power
8 years, 4 months ago (2012-08-01 06:21:45 UTC) #11
Change committed as 149379

Powered by Google App Engine
This is Rietveld 408576698