else if (content_error == MS_MEDIA_ERR_PERMISSION_DENIED)
return THUMBNAIL_UTIL_ERROR_PERMISSION_DENIED;
+ /* Thumbnail error*/
+ else if ((content_error == MS_MEDIA_ERR_THUMB_TOO_BIG) || (content_error == MS_MEDIA_ERR_THUMB_UNSUPPORTED))
+ return THUMBNAIL_UTIL_ERROR_UNSUPPORTED_CONTENT;
+
/*ETC*/
return THUMBNAIL_UTIL_ERROR_INVALID_OPERATION;
}
if (_thumb_cb != NULL) {
__thumbnail_util_convert_itoa(request_id, &request_id_str);
if (_thumb_cb->thumb_extract_cb)
- _thumb_cb->thumb_extract_cb(error, request_id_str, thumb_width, thumb_height, thumb_data, thumb_size, _thumb_cb->user_data);
+ _thumb_cb->thumb_extract_cb(__thumbnail_util_error_capi(error), request_id_str, thumb_width, thumb_height, thumb_data, thumb_size, _thumb_cb->user_data);
}
SAFE_FREE(_thumb_cb);