From 2f6af43a06261ce91b4f769980a4c33e67651c13 Mon Sep 17 00:00:00 2001 From: Hyunil Date: Wed, 20 Dec 2017 09:25:07 +0900 Subject: [PATCH] tizenwlsink : Check bo numbers in MMVideBuffer to avoid error Change-Id: I9ff2b752532a0d86982f196ff7859a5390afe2bc Signed-off-by: Hyunil --- tizenwlsink/src/gsttizenwlsink.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tizenwlsink/src/gsttizenwlsink.c b/tizenwlsink/src/gsttizenwlsink.c index 8b5dae2..51fad82 100644 --- a/tizenwlsink/src/gsttizenwlsink.c +++ b/tizenwlsink/src/gsttizenwlsink.c @@ -838,8 +838,9 @@ gst_tizen_wl_sink_get_mm_video_buf (GstBuffer * buffer) mm_video_buf->handle.bo[0], mm_video_buf->handle.bo[1], mm_video_buf->handle.bo[2]); GST_DEBUG ("Number of TBM bo is %d", mm_video_buf->handle_num); - if (!mm_video_buf->handle_num) { + if (mm_video_buf->handle_num == 0) { GST_ERROR ("Number of TBM bo is %d", mm_video_buf->handle_num); + return NULL; } GST_DEBUG ("Number of plane is %d", mm_video_buf->plane_num); return mm_video_buf; -- 2.7.4