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

Unified Diff: webkit/media/android/webmediaplayer_android.cc

Issue 10828079: Fix a renderer crash when media elements get deleted (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/media/android/webmediaplayer_android.cc
diff --git a/webkit/media/android/webmediaplayer_android.cc b/webkit/media/android/webmediaplayer_android.cc
index 6670ded56ec68e17ad375d8a1c41bf6c8f49f0c7..6fad668ec0240d87d2e09995991babcd19006c77 100644
--- a/webkit/media/android/webmediaplayer_android.cc
+++ b/webkit/media/android/webmediaplayer_android.cc
@@ -92,6 +92,9 @@ WebMediaPlayerAndroid::~WebMediaPlayerAndroid() {
if (manager_)
manager_->UnregisterMediaPlayer(player_id_);
+ if (stream_id_)
Ami GONE FROM CHROMIUM 2012/07/30 23:09:36 Huh; I didn't realize there's only one VideoFrame
qinmin 2012/07/31 22:07:52 We had some concerns previously on memory usage of
+ DestroyStreamTexture();
+
if (main_loop_)
main_loop_->RemoveDestructionObserver(this);
}
@@ -543,8 +546,7 @@ void WebMediaPlayerAndroid::CreateStreamTexture() {
texture_size_.height,
base::TimeDelta(),
base::TimeDelta(),
- base::Bind(&WebMediaPlayerAndroid::DestroyStreamTexture,
- base::Unretained(this)))));
+ base::Closure())));
}
void WebMediaPlayerAndroid::DestroyStreamTexture() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698