summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiyong Min <jiyong.min@samsung.com>2016-09-26 10:52:54 +0900
committerJiyong Min <jiyong.min@samsung.com>2016-09-26 10:57:43 +0900
commit113d6661f2b907669fe534ec9fd1bfd89ba3e2ad (patch)
treeb5fe97d4ac51c19f16076ac8dc6ac82a4b36128c
parent8bc13ad16fd8a63e9d460c633bfb3f2ef33a7596 (diff)
downloadlibmedia-thumbnail-113d6661f2b907669fe534ec9fd1bfd89ba3e2ad.tar.gz
libmedia-thumbnail-113d6661f2b907669fe534ec9fd1bfd89ba3e2ad.tar.bz2
libmedia-thumbnail-113d6661f2b907669fe534ec9fd1bfd89ba3e2ad.zip
- 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>
-rw-r--r--packaging/libmedia-thumbnail.spec2
-rwxr-xr-xsrc/util/media-thumb-util.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/packaging/libmedia-thumbnail.spec b/packaging/libmedia-thumbnail.spec
index 67f2a8e..41abfd9 100644
--- a/packaging/libmedia-thumbnail.spec
+++ b/packaging/libmedia-thumbnail.spec
@@ -1,6 +1,6 @@
Name: libmedia-thumbnail
Summary: Media thumbnail service library for multimedia applications
-Version: 0.1.98
+Version: 0.1.99
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0 and public domain
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
+}