Chromium Code Reviews| 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; |