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

Unified Diff: ppapi/proxy/ppb_audio_input_proxy.cc

Issue 8749017: Pepper: Add some basic tests for PPB_Audio. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remember to git add the files this time Created 9 years, 1 month 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
Index: ppapi/proxy/ppb_audio_input_proxy.cc
diff --git a/ppapi/proxy/ppb_audio_input_proxy.cc b/ppapi/proxy/ppb_audio_input_proxy.cc
index 9427bb34675cb0fd2a649948b9f524139cac5bb4..2933edd08de8c847c8ac24aed4b25965dcc69768 100644
--- a/ppapi/proxy/ppb_audio_input_proxy.cc
+++ b/ppapi/proxy/ppb_audio_input_proxy.cc
@@ -140,6 +140,9 @@ PP_Resource PPB_AudioInput_Proxy::CreateProxyResource(
if (config.failed())
return 0;
+ if (!audio_input_callback)
+ return 0;
+
HostResource result;
dispatcher->Send(new PpapiHostMsg_PPBAudioInput_Create(
API_ID_PPB_AUDIO_INPUT_DEV, instance_id,

Powered by Google App Engine
This is Rietveld 408576698