Fix wrong error type
[platform/core/api/thumbnail-util.git] / src / thumbnail_util.c
index 026c3fe..6d6cfce 100644 (file)
@@ -117,7 +117,7 @@ static int __thumbnail_util_check_media_type(const char *path, thumbnail_util_me
                return THUMBNAIL_UTIL_ERROR_NONE;
        }
 
-       return THUMBNAIL_UTIL_ERROR_INVALID_PARAMETER;
+       return THUMBNAIL_UTIL_ERROR_UNSUPPORTED_CONTENT;
 }
 
 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)