[vlc-devel] commit: read -> recv for Wins(o|u)ck ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Nov 9 19:05:25 CET 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Nov 9 20:04:38 2008 +0200| [e2fd6417ab45a222a20e6c3e10392654b85bd280] | committer: Rémi Denis-Courmont
read -> recv for Wins(o|u)ck
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e2fd6417ab45a222a20e6c3e10392654b85bd280
---
modules/access/rtp/input.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/access/rtp/input.c b/modules/access/rtp/input.c
index 8992cd4..106139d 100644
--- a/modules/access/rtp/input.c
+++ b/modules/access/rtp/input.c
@@ -53,7 +53,7 @@ static block_t *rtp_dgram_recv (int fd)
block_cleanup_push (block);
poll (&ufd, 1, -1);
- len = read (fd, block->p_buffer, block->i_buffer);
+ len = recv (fd, block->p_buffer, block->i_buffer, 0);
vlc_cleanup_pop ();
if ((len <= 0) && (ufd.revents & POLLHUP))
@@ -85,7 +85,7 @@ static block_t *rtp_stream_recv (int fd)
ssize_t val;
poll (&ufd, 1, -1);
- val = read (fd, hdr + len, 2 - len);
+ val = recv (fd, hdr + len, 2 - len, 0);
if (val <= 0)
return NULL;
len += val;
@@ -101,7 +101,7 @@ static block_t *rtp_stream_recv (int fd)
block_cleanup_push (block);
poll (&ufd, 1, -1);
- val = read (fd, block->p_buffer + i, block->i_buffer - i);
+ val = recv (fd, block->p_buffer + i, block->i_buffer - i, 0);
vlc_cleanup_pop ();
if (val <= 0)
More information about the vlc-devel
mailing list