Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1354)

Unified Diff: remoting/host/linux/audio_pipe_reader.cc

Issue 1547473005: Switch to standard integer types in remoting/host/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/linux/audio_pipe_reader.h ('k') | remoting/host/linux/audio_pipe_reader_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « remoting/host/linux/audio_pipe_reader.h ('k') | remoting/host/linux/audio_pipe_reader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698