diff options
Diffstat (limited to 'md5/media-thumb-hash.c')
-rw-r--r-- | md5/media-thumb-hash.c | 7 |
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; } |