summaryrefslogtreecommitdiffstats
path: root/libmpdemux/realrtsp
diff options
context:
space:
mode:
Diffstat (limited to 'libmpdemux/realrtsp')
-rw-r--r--libmpdemux/realrtsp/rmff.c4
-rw-r--r--libmpdemux/realrtsp/rtsp.c4
2 files changed, 4 insertions, 4 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:
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) {