mirror of https://github.com/mpv-player/mpv
tcp fragging bugfix by Song Du <freewizard at gmail.com>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12641 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
c664d580c2
commit
38bc7729f5
|
@ -53,6 +53,7 @@ static int net_read(int fd, char* buf, int len) {
|
|||
return 0;
|
||||
}
|
||||
len -= r;
|
||||
buf += r;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
@ -103,6 +104,7 @@ static int net_write(int fd, char* buf, int len) {
|
|||
return 0;
|
||||
}
|
||||
len -= w;
|
||||
buf += w;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue