udp: return circular buffer error if such error happened.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2011-12-23 01:41:15 +01:00
parent 9eb0d8bab1
commit 3dcbafc777
1 changed files with 2 additions and 0 deletions

View File

@ -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);