aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpdemux/realrtsp/rmff.c
diff options
context:
space:
mode:
authorGravatar alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-05-29 19:36:58 +0000
committerGravatar alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-05-29 19:36:58 +0000
commit85cbbc35304f4af162ab4de8b128b71d30dfcadd (patch)
tree0319aad339e596a1f267992bd116afa71c2a1980 /libmpdemux/realrtsp/rmff.c
parenta2a8724a9330d59f6e5fa1130ac6ad26bbe146a6 (diff)
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/rmff.c')
-rw-r--r--libmpdemux/realrtsp/rmff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpdemux/realrtsp/rmff.c b/libmpdemux/realrtsp/rmff.c
index 00ac565b08..0a5d65f984 100644
--- a/libmpdemux/realrtsp/rmff.c
+++ b/libmpdemux/realrtsp/rmff.c
@@ -502,7 +502,7 @@ rmff_header_t *rmff_scan_header_stream(int fd) {
do {
buf = xbuffer_ensure_size(buf, index+8);
- read(fd, buf+index, 8);
+ recv(fd, buf+index, 8, 0);
chunk_type=BE_32(buf+index); index+=4;
chunk_size=BE_32(buf+index); index+=4;
@@ -514,7 +514,7 @@ rmff_header_t *rmff_scan_header_stream(int fd) {
case RMF_TAG:
case PROP_TAG:
buf = xbuffer_ensure_size(buf, index+chunk_size-8);
- read(fd, buf+index, (chunk_size-8));
+ recv(fd, buf+index, (chunk_size-8), 0);
index+=(chunk_size-8);
break;
default: