diff options
author | Jiyong Min <jiyong.min@samsung.com> | 2016-09-26 10:52:54 +0900 |
---|---|---|
committer | Jiyong Min <jiyong.min@samsung.com> | 2016-09-26 10:57:43 +0900 |
commit | 113d6661f2b907669fe534ec9fd1bfd89ba3e2ad (patch) | |
tree | b5fe97d4ac51c19f16076ac8dc6ac82a4b36128c | |
parent | 8bc13ad16fd8a63e9d460c633bfb3f2ef33a7596 (diff) | |
download | libmedia-thumbnail-113d6661f2b907669fe534ec9fd1bfd89ba3e2ad.tar.gz libmedia-thumbnail-113d6661f2b907669fe534ec9fd1bfd89ba3e2ad.tar.bz2 libmedia-thumbnail-113d6661f2b907669fe534ec9fd1bfd89ba3e2ad.zip |
Modify not to create thumbnail of ASF videosubmit/tizen_3.0_wearable/20161015.000003submit/tizen_3.0_tv/20161015.000003submit/tizen_3.0_mobile/20161015.000003submit/tizen_3.0_ivi/20161010.000003submit/tizen_3.0_common/20161104.104000submit/tizen/20160928.043825accepted/tizen/wearable/20160930.040705accepted/tizen/tv/20160930.040609accepted/tizen/mobile/20160930.040444accepted/tizen/ivi/20160930.040759accepted/tizen/common/20160928.163957accepted/tizen/3.0/wearable/20161015.083148accepted/tizen/3.0/tv/20161016.005049accepted/tizen/3.0/mobile/20161015.033512accepted/tizen/3.0/ivi/20161011.044333accepted/tizen/3.0/common/20161114.105758
- 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.spec | 2 | ||||
-rwxr-xr-x | src/util/media-thumb-util.c | 5 |
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 +} |