Commit 3dcbafc7 authored by Michael Niedermayer's avatar Michael Niedermayer

udp: return circular buffer error if such error happened.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 9eb0d8ba
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment