Commit 9dfa7a91 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

linsys_hdsdi: do not fail on EINTR

parent 60bb7478
...@@ -675,12 +675,8 @@ static int InitCapture( demux_t *p_demux ) ...@@ -675,12 +675,8 @@ static int InitCapture( demux_t *p_demux )
pfd[0].fd = p_sys->i_vfd; pfd[0].fd = p_sys->i_vfd;
pfd[0].events = POLLPRI; pfd[0].events = POLLPRI;
if ( poll( pfd, 1, READ_TIMEOUT ) < 0 ) if( poll( pfd, 1, READ_TIMEOUT ) < 0 )
{ continue;
msg_Warn( p_demux, "couldn't poll(): %s", vlc_strerror_c(errno) );
close( p_sys->i_vfd );
return VLC_EGENERIC;
}
if ( pfd[0].revents & POLLPRI ) if ( pfd[0].revents & POLLPRI )
{ {
...@@ -931,11 +927,8 @@ static int Capture( demux_t *p_demux ) ...@@ -931,11 +927,8 @@ static int Capture( demux_t *p_demux )
pfd[1].events = POLLIN | POLLPRI; pfd[1].events = POLLIN | POLLPRI;
} }
if ( poll( pfd, 1 + (p_sys->i_max_channel != -1), READ_TIMEOUT ) < 0 ) if( poll( pfd, 1 + (p_sys->i_max_channel != -1), READ_TIMEOUT ) < 0 )
{ return VLC_SUCCESS;
msg_Warn( p_demux, "couldn't poll(): %s", vlc_strerror_c(errno) );
return VLC_EGENERIC;
}
if ( pfd[0].revents & POLLPRI ) if ( pfd[0].revents & POLLPRI )
{ {
......
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