summaryrefslogtreecommitdiff
path: root/libavformat/udp.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-12-23 01:41:15 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-12-23 01:41:15 +0100
commit3dcbafc777513621e423c2f23b1725559230383d (patch)
tree003b05d70855fa636420786a96c2499b0a1520cf /libavformat/udp.c
parent9eb0d8bab1c475edf73c36146d1c3d31ea47f997 (diff)
udp: return circular buffer error if such error happened.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/udp.c')
-rw-r--r--libavformat/udp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/udp.c b/libavformat/udp.c
index 281f5158b3..3cdee067f2 100644
--- a/libavformat/udp.c
+++ b/libavformat/udp.c
@@ -556,6 +556,8 @@ static int udp_read(URLContext *h, uint8_t *buf, int size)
av_fifo_generic_read(s->fifo, buf, avail, NULL);
av_fifo_drain(s->fifo, AV_RL32(tmp) - avail);
return avail;
+ } else if(s->circular_buffer_error){
+ return s->circular_buffer_error;
}
else {
FD_ZERO(&rfds);