| Index: remoting/host/linux/audio_pipe_reader.cc
|
| diff --git a/remoting/host/linux/audio_pipe_reader.cc b/remoting/host/linux/audio_pipe_reader.cc
|
| index 61a290da25623e206db76092076576543f29ed4f..c8bda1bb190a6ce5fec8a9fc0bb9946b2fbd61bd 100644
|
| --- a/remoting/host/linux/audio_pipe_reader.cc
|
| +++ b/remoting/host/linux/audio_pipe_reader.cc
|
| @@ -5,6 +5,7 @@
|
| #include "remoting/host/linux/audio_pipe_reader.h"
|
|
|
| #include <fcntl.h>
|
| +#include <stddef.h>
|
| #include <sys/stat.h>
|
| #include <sys/types.h>
|
| #include <unistd.h>
|
| @@ -147,9 +148,10 @@ void AudioPipeReader::DoCapture() {
|
| // Calculate how much we need read from the pipe. Pulseaudio doesn't control
|
| // how much data it writes to the pipe, so we need to pace the stream.
|
| base::TimeDelta stream_position = base::TimeTicks::Now() - started_time_;
|
| - int64 stream_position_bytes = stream_position.InMilliseconds() *
|
| - kSampleBytesPerSecond / base::Time::kMillisecondsPerSecond;
|
| - int64 bytes_to_read = stream_position_bytes - last_capture_position_;
|
| + int64_t stream_position_bytes = stream_position.InMilliseconds() *
|
| + kSampleBytesPerSecond /
|
| + base::Time::kMillisecondsPerSecond;
|
| + int64_t bytes_to_read = stream_position_bytes - last_capture_position_;
|
|
|
| std::string data = left_over_bytes_;
|
| size_t pos = data.size();
|
|
|