Commit 75a5fdde authored by Laurent Aimar's avatar Laurent Aimar

* dvb: fix report of error in FrontendPoll (please report any problem).

parent 7a97dae2
......@@ -258,16 +258,21 @@ void E_(FrontendPoll)( access_t *p_access )
{
access_sys_t *p_sys = p_access->p_sys;
frontend_t * p_frontend = p_sys->p_frontend;
int i_ret;
struct dvb_frontend_event event;
fe_status_t i_status, i_diff;
if( (i_ret = ioctl( p_sys->i_frontend_handle, FE_GET_EVENT,
&event )) < 0 )
for( ;; )
{
int i_ret = ioctl( p_sys->i_frontend_handle, FE_GET_EVENT, &event );
if( i_ret < 0 )
{
if( errno == EWOULDBLOCK )
return;
msg_Err( p_access, "reading frontend status failed (%d) %s",
i_ret, strerror(errno) );
return;
continue;
}
i_status = event.status;
......@@ -328,6 +333,7 @@ void E_(FrontendPoll)( access_t *p_access )
E_(FrontendSet)( p_access );
}
}
}
}
/*****************************************************************************
* FrontendInfo : Return information about given frontend
......
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