Chromium Code Reviews| Index: ppapi/proxy/ppb_audio_proxy.cc |
| =================================================================== |
| --- ppapi/proxy/ppb_audio_proxy.cc (revision 157181) |
| +++ 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 |
|
bbudge
2012/09/19 22:31:31
Thanks for the fix. I just noticed it on Windows (
|
| PpapiGlobals::Get()->GetResourceTracker()->ReleaseResource(config_); |
| } |