Change-Id: I55a0c2f2d695963f0cdd9e7c58eb49e7f275df10
int thumbnail_util_extract_to_buffer(const char *path, unsigned int width, unsigned int height, unsigned char **thumb_buffer, size_t *thumb_size, unsigned int *thumb_width, unsigned int *thumb_height)
{
int ret = THUMBNAIL_UTIL_ERROR_NONE;
- thumbnail_util_media_type_e type = -1;
+ thumbnail_util_media_type_e type;
/* check media type */
ret = __thumbnail_util_check_media_type(path, &type);