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

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

Issue 12099006: Merge 174913 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1364/src/
Patch Set: Created 7 years, 11 months 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/linux/audio_pipe_reader.cc
===================================================================
--- remoting/host/linux/audio_pipe_reader.cc (revision 179698)
+++ remoting/host/linux/audio_pipe_reader.cc (working copy)
@@ -145,10 +145,10 @@
while (pos < data.size()) {
int read_result = HANDLE_EINTR(
read(pipe_fd_, string_as_array(&data) + pos, data.size() - pos));
- if (read_result >= 0) {
+ if (read_result > 0) {
pos += read_result;
} else {
- if (errno != EWOULDBLOCK && errno != EAGAIN)
+ if (read_result < 0 && errno != EWOULDBLOCK && errno != EAGAIN)
PLOG(ERROR) << "read";
break;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698