Replace GST_ERROR by _mmcam_dbg_err 94/203294/2 accepted/tizen/unified/20190415.132544 submit/tizen/20190412.070842
authorJeongmo Yang <jm80.yang@samsung.com>
Thu, 11 Apr 2019 08:48:56 +0000 (17:48 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Thu, 11 Apr 2019 08:58:38 +0000 (17:58 +0900)
[Version] 0.10.182
[Profile] Common
[Issue Type] Typo

Change-Id: I5f0d6adf34737d82b14bb0d2b878e707e2729fe0
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
packaging/libmm-camcorder.spec
src/mm_camcorder_util.c

index 2e9537c..c005650 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-camcorder
 Summary:    Camera and recorder library
 Name:       libmm-camcorder
 Summary:    Camera and recorder library
-Version:    0.10.181
+Version:    0.10.182
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index 5fb7c21..1053e4c 100644 (file)
@@ -1731,7 +1731,6 @@ gboolean _mmcamcorder_link_elements(GList *element_list)
 gboolean _mmcamcorder_resize_frame(unsigned char *src_data, unsigned int src_width, unsigned int src_height, unsigned int src_length, int src_format,
        unsigned char **dst_data, unsigned int *dst_width, unsigned int *dst_height, size_t *dst_length)
 {
 gboolean _mmcamcorder_resize_frame(unsigned char *src_data, unsigned int src_width, unsigned int src_height, unsigned int src_length, int src_format,
        unsigned char **dst_data, unsigned int *dst_width, unsigned int *dst_height, size_t *dst_length)
 {
-       int ret = TRUE;
        int mm_ret = MM_ERROR_NONE;
        int input_format = MM_UTIL_COLOR_YUV420;
        mm_util_image_h src_image = NULL;
        int mm_ret = MM_ERROR_NONE;
        int input_format = MM_UTIL_COLOR_YUV420;
        mm_util_image_h src_image = NULL;
@@ -1772,21 +1771,21 @@ gboolean _mmcamcorder_resize_frame(unsigned char *src_data, unsigned int src_wid
 
        mm_ret = mm_image_create_image(src_width, src_height, input_format, src_data, (size_t)src_length, &src_image);
        if (mm_ret != MM_ERROR_NONE) {
 
        mm_ret = mm_image_create_image(src_width, src_height, input_format, src_data, (size_t)src_length, &src_image);
        if (mm_ret != MM_ERROR_NONE) {
-               GST_ERROR("mm_image_create_image failed 0x%x", ret);
+               _mmcam_dbg_err("mm_image_create_image failed 0x%x", mm_ret);
                return FALSE;
        }
 
        mm_ret = mm_util_resize_image(src_image, *dst_width, *dst_height, &dst_image);
        mm_image_destroy_image(src_image);
        if (mm_ret != MM_ERROR_NONE) {
                return FALSE;
        }
 
        mm_ret = mm_util_resize_image(src_image, *dst_width, *dst_height, &dst_image);
        mm_image_destroy_image(src_image);
        if (mm_ret != MM_ERROR_NONE) {
-               GST_ERROR("mm_util_resize_image failed 0x%x", ret);
+               _mmcam_dbg_err("mm_util_resize_image failed 0x%x", mm_ret);
                return FALSE;
        }
 
        mm_ret = mm_image_get_image(dst_image, dst_width, dst_height, NULL, dst_data, dst_length);
        mm_image_destroy_image(dst_image);
        if (mm_ret != MM_ERROR_NONE) {
                return FALSE;
        }
 
        mm_ret = mm_image_get_image(dst_image, dst_width, dst_height, NULL, dst_data, dst_length);
        mm_image_destroy_image(dst_image);
        if (mm_ret != MM_ERROR_NONE) {
-               GST_ERROR("mm_image_get_image failed 0x%x", ret);
+               _mmcam_dbg_err("mm_image_get_image failed 0x%x", mm_ret);
                return FALSE;
        }
 
                return FALSE;
        }