summaryrefslogtreecommitdiff
path: root/libavformat/rtpproto.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2011-07-17 13:27:46 +0200
committerDiego Biurrun <diego@biurrun.de>2011-07-21 23:03:10 +0200
commit4cc843facdc8cd922c423a09c5fff911137e4b4c (patch)
treebf9823f17c0b36a4ef65b202e0c984fad4aa4bcc /libavformat/rtpproto.c
parentbe7bd626c4832c4bc5295a01bfd68156ac78ccba (diff)
rtp: remove disabled code
Diffstat (limited to 'libavformat/rtpproto.c')
-rw-r--r--libavformat/rtpproto.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/libavformat/rtpproto.c b/libavformat/rtpproto.c
index dba1d35b03..0367198f36 100644
--- a/libavformat/rtpproto.c
+++ b/libavformat/rtpproto.c
@@ -225,20 +225,6 @@ static int rtp_read(URLContext *h, uint8_t *buf, int size)
int len, n;
struct pollfd p[2] = {{s->rtp_fd, POLLIN, 0}, {s->rtcp_fd, POLLIN, 0}};
-#if 0
- for(;;) {
- from_len = sizeof(from);
- len = recvfrom (s->rtp_fd, buf, size, 0,
- (struct sockaddr *)&from, &from_len);
- if (len < 0) {
- if (ff_neterrno() == AVERROR(EAGAIN) ||
- ff_neterrno() == AVERROR(EINTR))
- continue;
- return AVERROR(EIO);
- }
- break;
- }
-#else
for(;;) {
if (url_interrupt_cb())
return AVERROR_EXIT;
@@ -277,7 +263,6 @@ static int rtp_read(URLContext *h, uint8_t *buf, int size)
return AVERROR(EIO);
}
}
-#endif
return len;
}
@@ -296,14 +281,6 @@ static int rtp_write(URLContext *h, const uint8_t *buf, int size)
}
ret = ffurl_write(hd, buf, size);
-#if 0
- {
- struct timespec ts;
- ts.tv_sec = 0;
- ts.tv_nsec = 10 * 1000000;
- nanosleep(&ts, NULL);
- }
-#endif
return ret;
}