| Index: media/audio/audio_device_thread.cc
|
| diff --git a/media/audio/audio_device_thread.cc b/media/audio/audio_device_thread.cc
|
| index edbdbd89cedd42f32d83fed4999114c06b609255..c6e7e32474c1ec8844f50161e23d3d3a76df66fa 100644
|
| --- a/media/audio/audio_device_thread.cc
|
| +++ b/media/audio/audio_device_thread.cc
|
| @@ -67,9 +67,9 @@ void AudioDeviceThread::ThreadMain() {
|
|
|
| uint32_t buffer_index = 0;
|
| while (true) {
|
| - uint32_t pending_data = 0;
|
| - size_t bytes_read = socket_.Receive(&pending_data, sizeof(pending_data));
|
| - if (bytes_read != sizeof(pending_data))
|
| + Packet packet = {0, AudioTimestamp()};
|
| + size_t bytes_read = socket_.Receive(&packet, sizeof(packet));
|
| + if (bytes_read != sizeof(packet))
|
| break;
|
|
|
| // std::numeric_limits<uint32_t>::max() is a special signal which is
|
| @@ -80,8 +80,8 @@ void AudioDeviceThread::ThreadMain() {
|
| // the buffer index for synchronized buffers though.
|
| //
|
| // See comments in AudioOutputController::DoPause() for details on why.
|
| - if (pending_data != std::numeric_limits<uint32_t>::max())
|
| - callback_->Process(pending_data);
|
| + if (packet.pending_data != std::numeric_limits<uint32_t>::max())
|
| + callback_->Process(packet.pending_data, packet.timestamp);
|
|
|
| // The usage of synchronized buffers differs between input and output cases.
|
| //
|
|
|