udp: return the error code instead of generic EIO.

This commit is contained in:
Nicolas George 2012-03-15 13:42:34 +01:00
parent 5deb5ccbbb
commit e1838835aa
1 changed files with 1 additions and 1 deletions

View File

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