From: joonbum.ko Date: Wed, 5 Oct 2016 08:44:52 +0000 (+0900) Subject: tpl_wayland_egl: Fix misused return value of wl_display_roundtrip_queue() on buffer_... X-Git-Tag: accepted/tizen/common/20161005.165649~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F91%2F90991%2F2;p=platform%2Fcore%2Fuifw%2Flibtpl-egl.git tpl_wayland_egl: Fix misused return value of wl_display_roundtrip_queue() on buffer_flusher_init() - If there are errors on wl_display_roundtrip_queue then it returns values as '-1'. Change-Id: I754df1768b46f0d815af84255255997429eefa7b Signed-off-by: joonbum.ko --- diff --git a/src/tpl_wayland_egl.c b/src/tpl_wayland_egl.c index 4ff75bd..7119bf2 100644 --- a/src/tpl_wayland_egl.c +++ b/src/tpl_wayland_egl.c @@ -1298,7 +1298,7 @@ __tpl_wayland_egl_display_buffer_flusher_init(tpl_display_t *display) } ret = wl_display_roundtrip_queue(wayland_egl_display->wl_dpy, queue); - if (ret) { + if (ret == -1) { TPL_ERR("Failed to wl_display_roundtrip_queue ret:%d, err:%d", ret, errno); goto fini; }