{
int ret = MEDIA_CONTENT_ERROR_NONE;
media_info_s *_media = (media_info_s*)media;
- char repl_path[MAX_PATH_LEN] = {0, };
-
- if (_media != NULL && STRING_VALID(_media->media_id) && STRING_VALID(_media->file_path) && _media->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 = thumbnail_request_cancel_media(_media->request_id, repl_path);
+ if (_media != NULL && STRING_VALID(_media->media_id) && _media->request_id > 0) {
+ ret = thumbnail_request_cancel_media(_media->request_id);
ret = _content_error_capi(MEDIA_THUMBNAIL_TYPE, ret);
} else {
media_content_error("INVALID_PARAMETER(0x%08x)", MEDIA_CONTENT_ERROR_INVALID_PARAMETER);