summaryrefslogtreecommitdiff
path: root/md5/media-thumb-hash.c
diff options
context:
space:
mode:
authorhj kim <backto.kim@samsung.com>2015-06-04 21:09:04 -0700
committerhj kim <backto.kim@samsung.com>2015-06-04 21:09:04 -0700
commit999b9402a56d7c9738d6d632eff2f90004bbfbaf (patch)
tree31416fd3ece796751014dab252673fc71b278240 /md5/media-thumb-hash.c
parentc896230ef091a244204b17bc9ab0ffa974ce2031 (diff)
downloadlibmedia-thumbnail-accepted/tizen/wearable/20150606.054548.tar.gz
libmedia-thumbnail-accepted/tizen/wearable/20150606.054548.tar.bz2
libmedia-thumbnail-accepted/tizen/wearable/20150606.054548.zip
This reverts commit c896230ef091a244204b17bc9ab0ffa974ce2031. Change-Id: I94ec0a56f7c3d84ad76645b91310494b96d41932
Diffstat (limited to 'md5/media-thumb-hash.c')
-rw-r--r--md5/media-thumb-hash.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/md5/media-thumb-hash.c b/md5/media-thumb-hash.c
index 6081681..bd8df13 100644
--- a/md5/media-thumb-hash.c
+++ b/md5/media-thumb-hash.c
@@ -29,7 +29,6 @@
#include "media-thumbnail-private.h"
#include <string.h>
#include <alloca.h>
-#include <media-util-err.h>
static const char ACCEPTABLE_URI_CHARS[96] = {
@@ -116,18 +115,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 MS_MEDIA_ERR_INVALID_PARAMETER;
+ return MEDIA_THUMB_ERROR_INVALID_PARAMETER;
}
hash = _media_thumb_generate_hash_name(origin_path);
if (hash == NULL) {
- return MS_MEDIA_ERR_INTERNAL;
+ return MEDIA_THUMB_ERROR_HASHCODE;
}
strncpy(hash_code, hash, max_length);
hash_code[strlen(hash_code)] ='\0';
- return MS_MEDIA_ERR_NONE;
+ return MEDIA_THUMB_ERROR_NONE;
}