summaryrefslogtreecommitdiff
path: root/src/media-thumb-internal.c
diff options
context:
space:
mode:
authorJean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>2014-08-26 14:28:49 (GMT)
committerJean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>2014-09-30 12:09:14 (GMT)
commit561e2cae46730cdbadf485dfa7ab449e60524bae (patch)
tree5d2127e248aac6750950cbd2352976729baa4bc7 /src/media-thumb-internal.c
parent1b8cf739c37f1103b7fa613b788f0d5e32f5bad9 (diff)
downloadlibmedia-thumbnail-tizen_3.0.2014.q3_common.zip
libmedia-thumbnail-tizen_3.0.2014.q3_common.tar.gz
libmedia-thumbnail-tizen_3.0.2014.q3_common.tar.bz2
Use User UID to write or read into database Use Unix socket Fix-Tizen: TC-1482 Change-Id: I557a28de1650c9af1a30ef7d795d64464eaa2e8f Signed-off-by: Jean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>
Diffstat (limited to 'src/media-thumb-internal.c')
-rwxr-xr-xsrc/media-thumb-internal.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/media-thumb-internal.c b/src/media-thumb-internal.c
index 0feee8a..fc0ca00 100755
--- a/src/media-thumb-internal.c
+++ b/src/media-thumb-internal.c
@@ -169,7 +169,7 @@ _media_thumb_get_thumb_from_exif(ExifData *ed,
int orientation,
int required_width,
int required_height,
- media_thumb_info *thumb_info)
+ media_thumb_info *thumb_info, uid_t uid)
{
ExifEntry *entry;
ExifIfd ifd;
@@ -278,7 +278,7 @@ _media_thumb_get_thumb_from_exif(ExifData *ed,
err =
_media_thumb_get_hash_name(file_full_path,
thumb_path,
- sizeof(thumb_path));
+ sizeof(thumb_path), uid);
if (err < 0) {
thumb_dbg("_media_thumb_get_hash_name failed\n");
SAFE_FREE(thumb);
@@ -951,7 +951,8 @@ int _media_thumb_jpeg(const char *origin_path,
int thumb_width,
int thumb_height,
media_thumb_format format,
- media_thumb_info *thumb_info)
+ media_thumb_info *thumb_info,
+ uid_t uid)
{
int err = -1;
ExifData *ed = NULL;
@@ -970,7 +971,7 @@ int _media_thumb_jpeg(const char *origin_path,
}
/* Second, Get thumb from exif */
- err = _media_thumb_get_thumb_from_exif(ed, origin_path, orientation, thumb_width, thumb_height, thumb_info);
+ err = _media_thumb_get_thumb_from_exif(ed, origin_path, orientation, thumb_width, thumb_height, thumb_info, uid);
if (err < 0) {
thumb_dbg("_media_thumb_get_thumb_from_exif failed");
@@ -1021,7 +1022,7 @@ _media_thumb_image(const char *origin_path,
int thumb_width,
int thumb_height,
media_thumb_format format,
- media_thumb_info *thumb_info)
+ media_thumb_info *thumb_info, uid_t uid)
{
int err = -1;
int image_type = 0;
@@ -1045,7 +1046,7 @@ _media_thumb_image(const char *origin_path,
if (image_type == IMG_CODEC_AGIF) {
err = _media_thumb_agif(origin_path, &image_info, thumb_width, thumb_height, format, thumb_info);
} else if (image_type == IMG_CODEC_JPEG) {
- err = _media_thumb_jpeg(origin_path, thumb_width, thumb_height, format, thumb_info);
+ err = _media_thumb_jpeg(origin_path, thumb_width, thumb_height, format, thumb_info, uid);
} else if (image_type == IMG_CODEC_PNG) {
err = _media_thumb_png(origin_path, thumb_width, thumb_height, format, thumb_info);
} else if (image_type == IMG_CODEC_GIF) {
@@ -1095,7 +1096,8 @@ _media_thumb_video(const char *origin_path,
int thumb_width,
int thumb_height,
media_thumb_format format,
- media_thumb_info *thumb_info)
+ media_thumb_info *thumb_info,
+ uid_t uid)
{
int err = -1;