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

Unified Diff: ppapi/proxy/ppb_audio_proxy.cc

Issue 10918083: Changes to allow testing interface for new NaCl Proxy (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 3 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/proxy/interface_list.cc ('k') | ppapi/proxy/ppb_testing_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppb_audio_proxy.cc
===================================================================
--- ppapi/proxy/ppb_audio_proxy.cc (revision 157652)
+++ ppapi/proxy/ppb_audio_proxy.cc (working copy)
@@ -74,6 +74,13 @@
}
Audio::~Audio() {
+#if defined(OS_NACL)
+ // Invoke StopPlayback() to ensure audio back-end has a chance to send the
+ // escape value over the sync socket, which will terminate the client side
+ // audio callback loop. This is required for NaCl Plugins that can't escape
+ // by shutting down the sync_socket.
+ StopPlayback();
+#endif
PpapiGlobals::Get()->GetResourceTracker()->ReleaseResource(config_);
}
« no previous file with comments | « ppapi/proxy/interface_list.cc ('k') | ppapi/proxy/ppb_testing_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698