summaryrefslogtreecommitdiff
path: root/server/thumb-server-internal.c
diff options
context:
space:
mode:
authorhj kim <backto.kim@samsung.com>2020-03-10 08:11:03 (GMT)
committerhj kim <backto.kim@samsung.com>2020-03-10 08:13:17 (GMT)
commite421966a110df21102f028d10161f5b9c95be83b (patch)
tree175f5f9dd1707cee2fa770010b38bd0accd3f4ee /server/thumb-server-internal.c
parenteab90d6fef200958119d222b1ff78cfd56ccdb7a (diff)
downloadlibmedia-thumbnail-e421966a110df21102f028d10161f5b9c95be83b.zip
libmedia-thumbnail-e421966a110df21102f028d10161f5b9c95be83b.tar.gz
libmedia-thumbnail-e421966a110df21102f028d10161f5b9c95be83b.tar.bz2
Change type of parameters for thumbnailrefs/changes/84/227184/2
Change-Id: If9064b469c8e1d54fcb9ca50ae669c91fc7e14da
Diffstat (limited to 'server/thumb-server-internal.c')
-rwxr-xr-xserver/thumb-server-internal.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/server/thumb-server-internal.c b/server/thumb-server-internal.c
index 8aecc6b..33716ca 100755
--- a/server/thumb-server-internal.c
+++ b/server/thumb-server-internal.c
@@ -67,13 +67,13 @@ static int __thumbnail_get_data(const char *origin_path, char *thumb_path)
return MS_MEDIA_ERR_NONE;
}
-static int __thumbnail_get_raw_data(const char *origin_path, int *width, int *height, unsigned char **data, int *size)
+static int __thumbnail_get_raw_data(const char *origin_path, unsigned int *width, unsigned int *height, unsigned char **data, size_t *size)
{
int err = MS_MEDIA_ERR_NONE;
- int thumb_width = -1;
- int thumb_height = -1;
+ unsigned int thumb_width = 0;
+ unsigned int thumb_height = 0;
- if (origin_path == NULL || *width <= 0 || *height <= 0) {
+ if (origin_path == NULL || *width == 0 || *height == 0) {
thumb_err("Invalid parameter");
return MS_MEDIA_ERR_INVALID_PARAMETER;
}
@@ -162,9 +162,9 @@ static int __media_thumb_process_raw(thumbMsg *req_msg, thumbMsg *res_msg)
{
int err = MS_MEDIA_ERR_NONE;
unsigned char *data = NULL;
- int thumb_size = 0;
- int thumb_w = 0;
- int thumb_h = 0;
+ size_t thumb_size = 0;
+ unsigned int thumb_w = 0;
+ unsigned int thumb_h = 0;
thumb_retvm_if(!req_msg || !res_msg, MS_MEDIA_ERR_INVALID_PARAMETER, "Invalid msg");