summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorMinje Ahn <minje.ahn@samsung.com>2018-01-25 00:57:30 (GMT)
committerMinje Ahn <minje.ahn@samsung.com>2018-01-31 05:58:04 (GMT)
commit6fd9ba41fd0ee715c77f37f0211435f8e44562bc (patch)
treec2b3f07600af5e7d3e68e9ba2eb5ab5374c19eaf /server
parenteecae1bb5a57f33fc65c203afc8024266f03356d (diff)
downloadlibmedia-thumbnail-6fd9ba41fd0ee715c77f37f0211435f8e44562bc.zip
libmedia-thumbnail-6fd9ba41fd0ee715c77f37f0211435f8e44562bc.tar.gz
libmedia-thumbnail-6fd9ba41fd0ee715c77f37f0211435f8e44562bc.tar.bz2
Modify video thumbnail processrefs/changes/82/168182/4
Change-Id: Iddde97e813d5d5ea1d67524cf1063561d65f7c91 Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Diffstat (limited to 'server')
-rwxr-xr-xserver/thumb-server-internal.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/thumb-server-internal.c b/server/thumb-server-internal.c
index 1b8bac3..2c84120 100755
--- a/server/thumb-server-internal.c
+++ b/server/thumb-server-internal.c
@@ -288,8 +288,8 @@ int _thumbnail_get_data(const char *origin_path,
err = _media_thumb_image(origin_path, thumb_path, THUMB_DEFAULT_WIDTH, THUMB_DEFAULT_HEIGHT, &thumb_info);
thumb_retvm_if(err != MS_MEDIA_ERR_NONE, err, "_media_thumb_image failed");
} else if (file_type == THUMB_VIDEO_TYPE) {
- err = _media_thumb_video(origin_path, THUMB_DEFAULT_WIDTH, THUMB_DEFAULT_HEIGHT, &thumb_info);
- thumb_retvm_if(err != MS_MEDIA_ERR_NONE, err, "_media_thumb_video failed");
+ err = _media_thumb_video(origin_path, thumb_path, THUMB_DEFAULT_WIDTH, THUMB_DEFAULT_HEIGHT, &thumb_info);
+ thumb_retvm_if(err != MS_MEDIA_ERR_NONE, MS_MEDIA_ERR_INTERNAL, "_media_thumb_video failed");
} else {
thumb_err("invalid file type");
return MS_MEDIA_ERR_THUMB_UNSUPPORTED;
@@ -334,8 +334,8 @@ int _thumbnail_get_raw_data(const char *origin_path, int *width, int *height, un
err = _media_thumb_image(origin_path, thumb_path, thumb_width, thumb_height, &thumb_info);
thumb_retvm_if(err != MS_MEDIA_ERR_NONE, err, "_media_thumb_image failed");
} else if (file_type == THUMB_VIDEO_TYPE) {
- err = _media_thumb_video(origin_path, thumb_width, thumb_height, &thumb_info);
- thumb_retvm_if(err != MS_MEDIA_ERR_NONE, err, "_media_thumb_video failed");
+ err = _media_thumb_video(origin_path, NULL, thumb_width, thumb_height, &thumb_info);
+ thumb_retvm_if(err != MS_MEDIA_ERR_NONE, MS_MEDIA_ERR_INTERNAL, "_media_thumb_video failed");
} else {
thumb_err("invalid file type");
return MS_MEDIA_ERR_THUMB_UNSUPPORTED;