Index: media/audio/audio_device_thread.cc |
diff --git a/media/audio/audio_device_thread.cc b/media/audio/audio_device_thread.cc |
index 20874599e68f5f7cfddeff0022291e64aa718b6c..7074b2174a8497fd19dea5aa0c9af2cd8bccee86 100644 |
--- a/media/audio/audio_device_thread.cc |
+++ b/media/audio/audio_device_thread.cc |
@@ -175,6 +175,11 @@ void AudioDeviceThread::Thread::Run() { |
if (bytes_read != sizeof(pending_data)) |
break; |
+ AudioTimestamp output_timestamp = {0, 0}; |
+ bytes_read = socket_.Receive(&output_timestamp, sizeof(output_timestamp)); |
+ if (bytes_read != sizeof(output_timestamp)) |
+ break; |
+ |
// std::numeric_limits<uint32_t>::max() is a special signal which is |
// returned after the browser stops the output device in response to a |
// renderer side request. |
@@ -186,7 +191,7 @@ void AudioDeviceThread::Thread::Run() { |
if (pending_data != std::numeric_limits<uint32_t>::max()) { |
base::AutoLock auto_lock(callback_lock_); |
if (callback_) |
- callback_->Process(pending_data); |
+ callback_->Process(pending_data, output_timestamp); |
} |
// The usage of |synchronized_buffers_| differs between input and output |