poll() requires to check return value only in this case.
_tdm_send_time() should not be called if error occurs on poll().
Change-Id: Ia5edeefcd5f47a9169a456e86d2601d03158ab15
goto done;
else if (tick == 1)
{
- fd_set rfds;
int ret;
if (!vblank_wait)
{
else if ((ptime + _tdm_req_fps) <= ecore_time_get())
DBG("tdm vblank handler does not called in %lfms\n", ecore_time_get() - ptime);
- FD_ZERO(&rfds);
- FD_SET(tdm_fd, &rfds);
-
ret = poll(&fds, 1, -1);
- if ((ret == 1) && (FD_ISSET(tdm_fd, &rfds)))
+ if (ret == 1)
{
err = tdm_client_handle_events(client);
if (err != TDM_ERROR_NONE) {
ERR("tdm_fd poll fail\n");
goto done;
}
-
- vblank_wait = 0;
- _tdm_send_time(ecore_time_get());
}
}
}