diff options
author | Ramiro Polla <ramiro@lisha.ufsc.br> | 2007-01-21 20:40:22 +0000 |
---|---|---|
committer | Guillaume Poirier <gpoirier@mplayerhq.hu> | 2007-01-21 20:40:22 +0000 |
commit | 95a47d963b4a6238efa432ba42cf1717e197372e (patch) | |
tree | 18572c89025e68dae44031b2590c004bd22897b6 /libavformat/tcp.c | |
parent | fe468b331a956082314061925a355e566611cecc (diff) | |
download | ffmpeg-95a47d963b4a6238efa432ba42cf1717e197372e.tar.gz |
BeOS cleanup
Patch by Ramiro Polla % ramiro A lisha P ufsc P br %
Original thread:
date: Jan 20, 2007 8:56 PM
subject: [Ffmpeg-devel] [PATCH] [RFC] change socket read and write functions
Originally committed as revision 7613 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/tcp.c')
-rw-r--r-- | libavformat/tcp.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/libavformat/tcp.c b/libavformat/tcp.c index 52aab81e82..769282182c 100644 --- a/libavformat/tcp.c +++ b/libavformat/tcp.c @@ -142,11 +142,7 @@ static int tcp_read(URLContext *h, uint8_t *buf, int size) tv.tv_usec = 100 * 1000; ret = select(fd_max + 1, &rfds, NULL, NULL, &tv); if (ret > 0 && FD_ISSET(s->fd, &rfds)) { -#ifdef __BEOS__ len = recv(s->fd, buf, size, 0); -#else - len = read(s->fd, buf, size); -#endif if (len < 0) { if (errno != EINTR && errno != EAGAIN) #ifdef __BEOS__ @@ -179,11 +175,7 @@ static int tcp_write(URLContext *h, uint8_t *buf, int size) tv.tv_usec = 100 * 1000; ret = select(fd_max + 1, NULL, &wfds, NULL, &tv); if (ret > 0 && FD_ISSET(s->fd, &wfds)) { -#ifdef __BEOS__ len = send(s->fd, buf, size, 0); -#else - len = write(s->fd, buf, size); -#endif if (len < 0) { if (errno != EINTR && errno != EAGAIN) { #ifdef __BEOS__ |