From: Sangjin Lee Date: Tue, 4 Jul 2017 22:46:12 +0000 (+0900) Subject: wayland_shm: add condition check for shm_flusher X-Git-Tag: accepted/tizen/unified/20170711.181154~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=95d8baf02adbfc484c72e68930e61da26b456c4f;p=platform%2Fupstream%2Fefl.git wayland_shm: add condition check for shm_flusher Change-Id: I09979ce5225a2a982ef86d43871a484e557cbd6d --- diff --git a/src/modules/evas/engines/wayland_shm/evas_tbmbuf.c b/src/modules/evas/engines/wayland_shm/evas_tbmbuf.c index e5404fb..9ab79c3 100644 --- a/src/modules/evas/engines/wayland_shm/evas_tbmbuf.c +++ b/src/modules/evas/engines/wayland_shm/evas_tbmbuf.c @@ -692,8 +692,11 @@ _evas_tbmbuf_surface_create(Surface *s, int w, int h, int num_buff) if (!tzsurf) _shm_tzsurf_init(surf->wl_display); - surf->tzsurf_flusher = tizen_surface_shm_get_flusher(tzsurf, surf->wl_surface); - tizen_surface_shm_flusher_add_listener(surf->tzsurf_flusher, &_tzsurf_flusher_listener, surf); + if (tzsurf && !surf->tzsurf_flusher) + { + surf->tzsurf_flusher = tizen_surface_shm_get_flusher(tzsurf, surf->wl_surface); + tizen_surface_shm_flusher_add_listener(surf->tzsurf_flusher, &_tzsurf_flusher_listener, surf); + } return EINA_TRUE;