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

Unified Diff: ppapi/proxy/ppp_content_decryptor_private_proxy.cc

Issue 11091005: Update PluginInstance for decrypt-and-decode video. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix a bug in ppp_content_decryptor_private_proxy.cc Created 8 years, 2 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/cpp/private/content_decryptor_private.h ('k') | webkit/media/crypto/ppapi/cdm_wrapper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppp_content_decryptor_private_proxy.cc
diff --git a/ppapi/proxy/ppp_content_decryptor_private_proxy.cc b/ppapi/proxy/ppp_content_decryptor_private_proxy.cc
index 7608dfe7745c69fb92148e9ab76816869a630334..29190afcd9ffe4292fa9bc447d7f9ec9168e6675 100644
--- a/ppapi/proxy/ppp_content_decryptor_private_proxy.cc
+++ b/ppapi/proxy/ppp_content_decryptor_private_proxy.cc
@@ -100,6 +100,13 @@ bool InitializePppDecryptorBuffer(PP_Instance instance,
return false;
}
+ if (resource == 0) {
+ buffer->resource = HostResource();
+ buffer->handle = base::SharedMemoryHandle();
+ buffer->size = 0;
+ return true;
+ }
+
xhwang 2012/10/18 01:17:04 Sorry for the rebase noise. Add this line since th
if (!AddRefResourceForPlugin(dispatcher, resource))
return false;
« no previous file with comments | « ppapi/cpp/private/content_decryptor_private.h ('k') | webkit/media/crypto/ppapi/cdm_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698