[UTC][capi-media-vision][NON-ACR][SVACE] WGID-70278
authorsangho park <sangho.g.park@samsung.com>
Fri, 9 Mar 2018 04:37:39 +0000 (13:37 +0900)
committersangho park <sangho.g.park@samsung.com>
Fri, 9 Mar 2018 04:40:41 +0000 (13:40 +0900)
Change-Id: I841a6af762cfe64659cac2e0e46211a4279d8aaf
Signed-off-by: sangho park <sangho.g.park@samsung.com>
src/utc/capi-media-vision/utc-mv_barcode.c

index 44adb16..e5ec423 100755 (executable)
@@ -1503,10 +1503,15 @@ int utc_mediavision_mv_barcode_detect_n5(void)
     roi.width = width;
     roi.height = height;
 
-    assert_eq(MEDIA_VISION_ERROR_NONE,
-            mv_source_fill_by_buffer(media_source, buffer,
-                                     buffer_size, width, height,
-                                     MEDIA_VISION_COLORSPACE_Y800));
+       int ret = mv_source_fill_by_buffer(media_source, buffer,
+               buffer_size, width, height,
+               MEDIA_VISION_COLORSPACE_Y800);
+
+       if (ret != MEDIA_VISION_ERROR_NONE)
+       {
+               free(buffer);
+               assert(FALSE);
+       }
 
     printf("roi is out of area: the right-bottom corner is (%d,%d)\n",
             roi.point.x + roi.width, roi.point.y + roi.height);