summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorJiyong Min <jiyong.min@samsung.com>2016-09-26 01:52:54 (GMT)
committerJiyong Min <jiyong.min@samsung.com>2016-09-26 01:57:43 (GMT)
commit113d6661f2b907669fe534ec9fd1bfd89ba3e2ad (patch)
treeb5fe97d4ac51c19f16076ac8dc6ac82a4b36128c /src/util
parent8bc13ad16fd8a63e9d460c633bfb3f2ef33a7596 (diff)
downloadlibmedia-thumbnail-113d6661f2b907669fe534ec9fd1bfd89ba3e2ad.zip
libmedia-thumbnail-113d6661f2b907669fe534ec9fd1bfd89ba3e2ad.tar.gz
libmedia-thumbnail-113d6661f2b907669fe534ec9fd1bfd89ba3e2ad.tar.bz2
- PROBLEM MIME type of ASF was changed to application/vnd.ms-asf from video. So thumb-server did not create thumbnail because ASF was not video type. [version] 0.1.99 [solution] Return video type for ASF video Change-Id: Id44f4296ea2e72f51d599fa36612a31694f97e8c Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
Diffstat (limited to 'src/util')
-rwxr-xr-xsrc/util/media-thumb-util.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/util/media-thumb-util.c b/src/util/media-thumb-util.c
index 9d16281..a0e5282 100755
--- a/src/util/media-thumb-util.c
+++ b/src/util/media-thumb-util.c
@@ -33,6 +33,7 @@ _media_thumb_get_file_type(const char *file_full_path)
int ret = 0;
char mimetype[255] = {0,};
const char *unsupported_type = "image/tiff";
+ const char *supported_type = "application/vnd.ms-asf";
if (file_full_path == NULL)
return MS_MEDIA_ERR_INVALID_PARAMETER;
@@ -83,6 +84,8 @@ _media_thumb_get_file_type(const char *file_full_path)
return THUMB_IMAGE_TYPE;
} else if (strstr(mimetype, "video") != NULL) {
return THUMB_VIDEO_TYPE;
+ } else if (strstr(mimetype, supported_type) != NULL) {
+ return THUMB_VIDEO_TYPE;
}
return THUMB_NONE_TYPE;
@@ -132,4 +135,4 @@ int _media_thumb_get_file_ext(const char *file_path, char *file_ext, int max_len
}
return -1;
-} \ No newline at end of file
+}