Commit e1838835 authored by Nicolas George's avatar Nicolas George

udp: return the error code instead of generic EIO.

parent 5deb5ccb
......@@ -342,7 +342,7 @@ static void *circular_buffer_task( void *_URLContext)
pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &old_cancelstate);
if (len < 0) {
if (ff_neterrno() != AVERROR(EAGAIN) && ff_neterrno() != AVERROR(EINTR)) {
s->circular_buffer_error = AVERROR(EIO);
s->circular_buffer_error = ff_neterrno();
goto end;
}
continue;
......
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