network: Use ff_neterrno instead of AVERROR(errno) for poll errors
This makes sure to pick up the actual error codes on windows. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
		
							parent
							
								
									5d01bd181b
								
							
						
					
					
						commit
						c194b9ad6d
					
				@ -138,7 +138,7 @@ static int ff_poll_interrupt(struct pollfd *p, nfds_t nfds, int timeout,
 | 
			
		||||
    if (!ret)
 | 
			
		||||
        return AVERROR(ETIMEDOUT);
 | 
			
		||||
    if (ret < 0)
 | 
			
		||||
        return AVERROR(errno);
 | 
			
		||||
        return ff_neterrno();
 | 
			
		||||
    return ret;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user