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_); |
} |