From 8b886abaef26c6597a35462a888efb86151375cd Mon Sep 17 00:00:00 2001 From: Hyunil Date: Fri, 27 May 2016 09:49:12 +0900 Subject: [PATCH] waylandsink : fix svace bugs Change-Id: I74e092117c140be39b74bc6fc669265382c5c8f6 Signed-off-by: Hyunil --- ext/wayland/gstwaylandsink.c | 2 +- ext/wayland/wlshmallocator.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/wayland/gstwaylandsink.c b/ext/wayland/gstwaylandsink.c index 888621b..512b7ba 100755 --- a/ext/wayland/gstwaylandsink.c +++ b/ext/wayland/gstwaylandsink.c @@ -412,7 +412,7 @@ gst_wayland_sink_make_flush_buffer (GstWlDisplay * display, display->flush_tbm_bufmgr = wayland_tbm_client_get_bufmgr (display->tbm_client); - g_return_if_fail (display->flush_tbm_bufmgr != NULL); + g_return_val_if_fail (display->flush_tbm_bufmgr != NULL, FALSE); for (i = 0; i < NV_BUF_PLANE_NUM; i++) { if (mm_video_buf->handle.bo[i] != NULL) { diff --git a/ext/wayland/wlshmallocator.c b/ext/wayland/wlshmallocator.c index 68be129..cb71493 100644 --- a/ext/wayland/wlshmallocator.c +++ b/ext/wayland/wlshmallocator.c @@ -65,7 +65,7 @@ gst_wl_shm_allocator_alloc (GstAllocator * allocator, gsize size, self->display->tbm_bufmgr = wayland_tbm_client_get_bufmgr (self->display->tbm_client); - g_return_if_fail (self->display->tbm_bufmgr != NULL); + g_return_val_if_fail (self->display->tbm_bufmgr != NULL, NULL); self->display->tbm_bo[idx] = tbm_bo_alloc (self->display->tbm_bufmgr, size, TBM_BO_DEFAULT); -- 2.7.4