From f1a78c80f93dfea33668ee98d7b2fba83243aaae Mon Sep 17 00:00:00 2001 From: hj kim Date: Fri, 23 Mar 2018 09:33:45 +0900 Subject: [PATCH] Fix coverity issues Change-Id: I4c3d1f66825418d3c2b26b5507af2a3dd1d2fda5 --- src/thumbnail_util.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/thumbnail_util.c b/src/thumbnail_util.c index 5252432..e722f80 100755 --- a/src/thumbnail_util.c +++ b/src/thumbnail_util.c @@ -351,7 +351,11 @@ int _thumbnail_util_extract_video(thumbnail_data_s *thumb) goto ERROR; } - mm_util_create_handle(&img, frame, width, height, size, MM_UTIL_COLOR_RGB24); + ret = mm_util_create_handle(&img, frame, width, height, size, MM_UTIL_COLOR_RGB24); + if (ret != MM_UTIL_ERROR_NONE) { + thumbnail_util_error("Failed to mm_util_create_handle"); + goto ERROR; + } if (thumb->extract_type == THUMBNAIL_UTIL_FILE) { ret = mm_util_resize_B_P(img, thumb->width, thumb->height, thumb->thumbnail_path); -- 2.34.1