From d6f15dd27cfc4b55c5055b4e93bed6d37d468e66 Mon Sep 17 00:00:00 2001 From: Changyeon Lee Date: Tue, 3 Jan 2017 17:13:42 +0900 Subject: [PATCH] e_plane: changed error log into warning log - if e_comp doesn't create tbm_surface not yet, tbm_surface can be null Change-Id: Ic23e18abe0ca07e3f96d8949552d52d394a10c38 --- src/bin/e_plane.c | 2 +- src/bin/e_plane_renderer.c | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/bin/e_plane.c b/src/bin/e_plane.c index b64ddef9e7..87bbf4a365 100644 --- a/src/bin/e_plane.c +++ b/src/bin/e_plane.c @@ -447,7 +447,7 @@ _e_plane_surface_from_ecore_evas_acquire(E_Plane *plane) { if(!(tqueue = _get_tbm_surface_queue(e_comp))) { - ERR("fail to _get_tbm_surface_queue"); + WRN("fail to _get_tbm_surface_queue"); return NULL; } diff --git a/src/bin/e_plane_renderer.c b/src/bin/e_plane_renderer.c index b1a436e0c1..d101979411 100644 --- a/src/bin/e_plane_renderer.c +++ b/src/bin/e_plane_renderer.c @@ -1533,7 +1533,11 @@ e_plane_renderer_surface_queue_can_dequeue(E_Plane_Renderer *renderer) EINA_SAFETY_ON_NULL_RETURN_VAL(renderer, EINA_FALSE); tqueue = renderer->tqueue; - EINA_SAFETY_ON_NULL_RETURN_VAL(tqueue, EINA_FALSE); + if (!tqueue) + { + WRN("tbm_surface_queue is NULL"); + return EINA_FALSE; + } num_free = tbm_surface_queue_can_dequeue(tqueue, 0); -- 2.34.1