| Index: ppapi/proxy/ppb_audio_proxy.cc
|
| diff --git a/ppapi/proxy/ppb_audio_proxy.cc b/ppapi/proxy/ppb_audio_proxy.cc
|
| index bc83be368a19e3b9f54dc272dab8d27c9a05ccd2..af46f60968b98aab24096526f5df089124e605cd 100644
|
| --- a/ppapi/proxy/ppb_audio_proxy.cc
|
| +++ b/ppapi/proxy/ppb_audio_proxy.cc
|
| @@ -322,6 +322,8 @@ void PPB_Audio_Proxy::OnMsgNotifyAudioStreamCreated(
|
| IPC::PlatformFileForTransitToPlatformFile(socket_handle.descriptor()));
|
| base::SharedMemory temp_mem(handle.shmem(), false);
|
| } else {
|
| + EnterResourceNoLock<PPB_AudioConfig_API> config(
|
| + static_cast<Audio*>(enter.object())->GetCurrentConfig(), true);
|
| // See the comment above about how we must call
|
| // TotalSharedMemorySizeInBytes to get the actual size of the buffer. Here,
|
| // we must call PacketSizeInBytes to get back the size of the audio buffer,
|
| @@ -329,7 +331,8 @@ void PPB_Audio_Proxy::OnMsgNotifyAudioStreamCreated(
|
| static_cast<Audio*>(enter.object())->SetStreamInfo(
|
| enter.resource()->pp_instance(), handle.shmem(),
|
| media::PacketSizeInBytes(handle.size()),
|
| - IPC::PlatformFileForTransitToPlatformFile(socket_handle.descriptor()));
|
| + IPC::PlatformFileForTransitToPlatformFile(socket_handle.descriptor()),
|
| + config.object()->GetSampleFrameCount());
|
| }
|
| }
|
|
|
|
|