Index: ppapi/proxy/audio_input_resource.cc |
diff --git a/ppapi/proxy/audio_input_resource.cc b/ppapi/proxy/audio_input_resource.cc |
index 4a7afff1a2cfda14e35ef5fd61c9b910ea1dc681..727d40262d6d2608933ae7c4bccecaccb3fe272b 100644 |
--- a/ppapi/proxy/audio_input_resource.cc |
+++ b/ppapi/proxy/audio_input_resource.cc |
@@ -8,7 +8,6 @@ |
#include "base/logging.h" |
#include "ipc/ipc_platform_file.h" |
#include "media/audio/audio_parameters.h" |
-#include "media/audio/shared_memory_util.h" |
#include "ppapi/c/pp_errors.h" |
#include "ppapi/proxy/ppapi_messages.h" |
#include "ppapi/proxy/resource_message_params.h" |
@@ -168,16 +167,9 @@ void AudioInputResource::OnPluginMsgOpenReply( |
params.TakeHandleOfTypeAtIndex(1, SerializedHandle::SHARED_MEMORY); |
CHECK(serialized_shared_memory_handle.IsHandleValid()); |
- // See the comment in pepper_audio_input_host.cc 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, |
- // excluding the bytes that audio uses for book-keeping. |
- size_t shared_memory_size = media::PacketSizeInBytes( |
- serialized_shared_memory_handle.size()); |
- |
open_state_ = OPENED; |
- SetStreamInfo(serialized_shared_memory_handle.shmem(), shared_memory_size, |
- socket_handle); |
+ SetStreamInfo(serialized_shared_memory_handle.shmem(), |
+ serialized_shared_memory_handle.size(), socket_handle); |
bbudge
2013/10/23 00:31:08
nit: separate line for third param.
DaleCurtis
2013/10/23 00:36:06
Done.
|
} else { |
capturing_ = false; |
} |