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

Unified Diff: webkit/plugins/ppapi/ppb_video_decoder_impl.cc

Issue 13123003: Flash: Don't lose a reference to the Graphics3D from the VideoDecoder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | « ppapi/shared_impl/ppb_video_decoder_shared.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_video_decoder_impl.cc
diff --git a/webkit/plugins/ppapi/ppb_video_decoder_impl.cc b/webkit/plugins/ppapi/ppb_video_decoder_impl.cc
index f1f7ed216d6e73ceb62914228796431652cfa0c6..b2581e540543798e2943ead1dfdf7e5031b6ecdd 100644
--- a/webkit/plugins/ppapi/ppb_video_decoder_impl.cc
+++ b/webkit/plugins/ppapi/ppb_video_decoder_impl.cc
@@ -206,13 +206,13 @@ int32_t PPB_VideoDecoder_Impl::Reset(scoped_refptr<TrackedCallback> callback) {
}
void PPB_VideoDecoder_Impl::Destroy() {
- if (!platform_video_decoder_.get())
- return;
-
FlushCommandBuffer();
- platform_video_decoder_.release()->Destroy();
- ::ppapi::PPB_VideoDecoder_Shared::Destroy();
+
+ if (platform_video_decoder_)
+ platform_video_decoder_.release()->Destroy();
ppp_videodecoder_ = NULL;
+
+ ::ppapi::PPB_VideoDecoder_Shared::Destroy();
}
void PPB_VideoDecoder_Impl::ProvidePictureBuffers(
« no previous file with comments | « ppapi/shared_impl/ppb_video_decoder_shared.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698