Change-Id: Idf5f0e33b72364e0dd4646b0d9790c4a6e05f04d
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
while (wayland_egl_surface->vblank_done == TPL_FALSE &&
wayland_egl_surface->tdm_vblank != NULL &&
tdm_client_vblank_is_waiting(wayland_egl_surface->tdm_vblank)) {
- tdm_err = tdm_client_handle_events(wayland_egl_display->tdm_client);
+ tdm_err = tdm_client_handle_events_timeout(wayland_egl_display->tdm_client,
+ 1000);
+ if (tdm_err == TDM_ERROR_TIMEOUT) {
+ TPL_ERR("Failed to tdm_client_handle_events. timeour (>1000)");
+ wayland_egl_surface->vblank_done = TPL_TRUE;
+ break;
+ }
if (tdm_err != TDM_ERROR_NONE) {
TPL_ERR("Failed to tdm_client_handle_events.");