tizenwlsink : Check bo numbers in MMVideBuffer to avoid error 78/164578/3
authorHyunil <hyunil46.park@samsung.com>
Wed, 20 Dec 2017 00:25:07 +0000 (09:25 +0900)
committerHyunil Park <hyunil46.park@samsung.com>
Wed, 20 Dec 2017 04:50:56 +0000 (04:50 +0000)
Change-Id: I9ff2b752532a0d86982f196ff7859a5390afe2bc
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
tizenwlsink/src/gsttizenwlsink.c

index 8b5dae2..51fad82 100644 (file)
@@ -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;