summaryrefslogtreecommitdiffstats
path: root/libmpdemux/realrtsp/rtsp.c
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-05-29 19:36:58 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-05-29 19:36:58 +0000
commit85cbbc35304f4af162ab4de8b128b71d30dfcadd (patch)
tree0319aad339e596a1f267992bd116afa71c2a1980 /libmpdemux/realrtsp/rtsp.c
parenta2a8724a9330d59f6e5fa1130ac6ad26bbe146a6 (diff)
downloadmpv-85cbbc35304f4af162ab4de8b128b71d30dfcadd.tar.bz2
mpv-85cbbc35304f4af162ab4de8b128b71d30dfcadd.tar.xz
Using recv/send instead read/write for proper MinGW support (it's a 4.2BSD standard). Patch by FloDt <flodt8@yahoo.de>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10207 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/realrtsp/rtsp.c')
-rw-r--r--libmpdemux/realrtsp/rtsp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpdemux/realrtsp/rtsp.c b/libmpdemux/realrtsp/rtsp.c
index 428c35f68e..153104f99a 100644
--- a/libmpdemux/realrtsp/rtsp.c
+++ b/libmpdemux/realrtsp/rtsp.c
@@ -158,7 +158,7 @@ static int write_stream(int s, const char *buf, int len) {
while (total < len){
int n;
- n = write (s, &buf[total], len - total);
+ n = send (s, &buf[total], len - total, 0);
if (n > 0)
total += n;
@@ -181,7 +181,7 @@ static ssize_t read_stream(int fd, void *buf, size_t count) {
while (total < count) {
- ret=read (fd, ((uint8_t*)buf)+total, count-total);
+ ret=recv (fd, ((uint8_t*)buf)+total, count-total, 0);
if (ret<0) {
if(errno == EAGAIN) {