From 113d6661f2b907669fe534ec9fd1bfd89ba3e2ad Mon Sep 17 00:00:00 2001 From: Jiyong Min Date: Mon, 26 Sep 2016 10:52:54 +0900 Subject: Modify not to create thumbnail of ASF video - 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 --- src/util/media-thumb-util.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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 +} -- cgit v1.2.3