From: Minje Ahn Date: Tue, 21 Nov 2017 00:26:54 +0000 (+0900) Subject: Remove unused parameter X-Git-Tag: submit/tizen/20171122.013254^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F37%2F160937%2F1;p=platform%2Fcore%2Fapi%2Fmedia-content.git Remove unused parameter Change-Id: I9ddc73dab9119b746dad9d848370dd1303a58786 Signed-off-by: Minje Ahn --- diff --git a/src/media_info.c b/src/media_info.c index f8c0541..250e7ad 100755 --- a/src/media_info.c +++ b/src/media_info.c @@ -3190,18 +3190,14 @@ int media_info_cancel_face_detection(media_info_h media) { int ret = MEDIA_CONTENT_ERROR_NONE; media_info_s *_media = (media_info_s*)media; - char repl_path[MAX_PATH_LEN] = {0, }; if (!__media_info_isFaceRecognition_feature_supported()) { media_content_error("NOT_SUPPORTED(0x%08x)", MEDIA_CONTENT_ERROR_NOT_SUPPORTED); return MEDIA_CONTENT_ERROR_NOT_SUPPORTED; } - if (_media != NULL && STRING_VALID(_media->media_id) && STRING_VALID(_media->file_path) && _media->face_request_id > 0) { - memset(repl_path, 0, sizeof(repl_path)); - ret = _media_content_replace_path(_media->file_path, repl_path); - media_content_retvm_if(!STRING_VALID(repl_path), MEDIA_CONTENT_ERROR_INVALID_OPERATION, "path replacement failed"); - ret = dcm_request_cancel_face(_media->face_request_id, repl_path); + if (_media != NULL && STRING_VALID(_media->media_id) && _media->face_request_id > 0) { + ret = dcm_request_cancel_face(_media->face_request_id); ret = _content_error_capi(MEDIA_THUMBNAIL_TYPE, ret); } else { media_content_error("INVALID_PARAMETER(0x%08x)", MEDIA_CONTENT_ERROR_INVALID_PARAMETER);