diff options
-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 +} |