summaryrefslogtreecommitdiff
path: root/md5
diff options
context:
space:
mode:
authorhj kim <backto.kim@samsung.com>2015-06-04 22:58:36 -0700
committerhj kim <backto.kim@samsung.com>2015-06-04 22:58:36 -0700
commit147bd126e27935c2f61283e0b9b247b713744127 (patch)
tree97e54161e040dbc59c0945184ed3a0abc1f3cc02 /md5
parent999b9402a56d7c9738d6d632eff2f90004bbfbaf (diff)
downloadlibmedia-thumbnail-submit/tizen/20150608.005348.tar.gz
libmedia-thumbnail-submit/tizen/20150608.005348.tar.bz2
libmedia-thumbnail-submit/tizen/20150608.005348.zip
This reverts commit 999b9402a56d7c9738d6d632eff2f90004bbfbaf. Change-Id: Ieadecdcb087ad27b7c60a1ed448db329df2b38c1
Diffstat (limited to 'md5')
-rw-r--r--md5/media-thumb-hash.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/md5/media-thumb-hash.c b/md5/media-thumb-hash.c
index bd8df13..6081681 100644
--- a/md5/media-thumb-hash.c
+++ b/md5/media-thumb-hash.c
@@ -29,6 +29,7 @@
#include "media-thumbnail-private.h"
#include <string.h>
#include <alloca.h>
+#include <media-util-err.h>
static const char ACCEPTABLE_URI_CHARS[96] = {
@@ -115,18 +116,18 @@ int thumbnail_generate_hash_code(const char *origin_path, char *hash_code, int m
char *hash = NULL;
if (max_length < ((2 * MD5_HASHBYTES) + 1)) {
- return MEDIA_THUMB_ERROR_INVALID_PARAMETER;
+ return MS_MEDIA_ERR_INVALID_PARAMETER;
}
hash = _media_thumb_generate_hash_name(origin_path);
if (hash == NULL) {
- return MEDIA_THUMB_ERROR_HASHCODE;
+ return MS_MEDIA_ERR_INTERNAL;
}
strncpy(hash_code, hash, max_length);
hash_code[strlen(hash_code)] ='\0';
- return MEDIA_THUMB_ERROR_NONE;
+ return MS_MEDIA_ERR_NONE;
}