summaryrefslogtreecommitdiff
path: root/src/media-thumb-internal.c
diff options
context:
space:
mode:
authorJi Yong Min <jiyong.min@samsung.com>2015-05-13 12:40:19 (GMT)
committerJi Yong Min <jiyong.min@samsung.com>2015-05-14 00:23:51 (GMT)
commit6ece5e54778f9a8bea3f23f3a932a884be3c9f87 (patch)
tree31416fd3ece796751014dab252673fc71b278240 /src/media-thumb-internal.c
parent460b807ff06de0d470973db91c96cb8121e912e6 (diff)
downloadlibmedia-thumbnail-6ece5e54778f9a8bea3f23f3a932a884be3c9f87.zip
libmedia-thumbnail-6ece5e54778f9a8bea3f23f3a932a884be3c9f87.tar.gz
libmedia-thumbnail-6ece5e54778f9a8bea3f23f3a932a884be3c9f87.tar.bz2
The color space that is used by thumbnail server is changed to RGB, because gdk support RGB color space.refs/changes/65/39365/3
(Fix broken thumbnail issue) Change-Id: Id3b5dfa9df57e35a3785eb0b191b020cba995e95 Signed-off-by: jiyong.min <jiyong.min@samsung.com>
Diffstat (limited to 'src/media-thumb-internal.c')
-rwxr-xr-xsrc/media-thumb-internal.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/media-thumb-internal.c b/src/media-thumb-internal.c
index b8ddb9c..e6b3f12 100755
--- a/src/media-thumb-internal.c
+++ b/src/media-thumb-internal.c
@@ -767,7 +767,7 @@ int _media_thumb_png(const char *origin_path,
return err;
}
- err = _media_thumb_convert_format(thumb_info, MEDIA_THUMB_BGRA, format);
+ err = _media_thumb_convert_format(thumb_info, MEDIA_THUMB_RGB888, format);
if (err < 0) {
thumb_err("_media_thumb_convert_format falied: %d", err);
SAFE_FREE(thumb_info->data);
@@ -791,7 +791,7 @@ int _media_thumb_bmp(const char *origin_path,
return err;
}
- err = _media_thumb_convert_format(thumb_info, MEDIA_THUMB_BGRA, format);
+ err = _media_thumb_convert_format(thumb_info, MEDIA_THUMB_RGB888, format);
if (err < 0) {
thumb_err("_media_thumb_convert_format falied: %d", err);
SAFE_FREE(thumb_info->data);
@@ -815,7 +815,7 @@ int _media_thumb_wbmp(const char *origin_path,
return err;
}
- err = _media_thumb_convert_format(thumb_info, MEDIA_THUMB_BGRA, format);
+ err = _media_thumb_convert_format(thumb_info, MEDIA_THUMB_RGB888, format);
if (err < 0) {
thumb_err("_media_thumb_convert_format falied: %d", err);
SAFE_FREE(thumb_info->data);
@@ -839,7 +839,7 @@ int _media_thumb_gif(const char *origin_path,
return err;
}
- err = _media_thumb_convert_format(thumb_info, MEDIA_THUMB_BGRA, format);
+ err = _media_thumb_convert_format(thumb_info, MEDIA_THUMB_RGB888, format);
if (err < 0) {
thumb_err("_media_thumb_convert_format falied: %d", err);
SAFE_FREE(thumb_info->data);
@@ -908,7 +908,7 @@ int _media_thumb_jpeg(const char *origin_path,
return err;
}
- err = _media_thumb_convert_format(thumb_info, MEDIA_THUMB_BGRA, format);
+ err = _media_thumb_convert_format(thumb_info, MEDIA_THUMB_RGB888, format);
if (err < 0) {
thumb_err("_media_thumb_convert_format falied: %d", err);
SAFE_FREE(thumb_info->data);