diff options
author | Minje Ahn <minje.ahn@samsung.com> | 2017-03-09 10:30:27 +0900 |
---|---|---|
committer | Minje Ahn <minje.ahn@samsung.com> | 2017-03-09 11:53:52 +0900 |
commit | c05d15af4985473288fc68f6d395a3bc73c6e325 (patch) | |
tree | 72b301993bf1dfdff3a17cecd90476d87ec5bfe0 | |
parent | 337bbad15fb6601df11bb1a88a4e6d1589cc8323 (diff) | |
download | libmedia-service-c05d15af4985473288fc68f6d395a3bc73c6e325.tar.gz libmedia-service-c05d15af4985473288fc68f6d395a3bc73c6e325.tar.bz2 libmedia-service-c05d15af4985473288fc68f6d395a3bc73c6e325.zip |
Update default value in metadatasubmit/tizen_unified/20170313.075707submit/tizen_unified/20170310.011402submit/tizen/20170309.081455accepted/tizen/wearable/20170310.031837accepted/tizen/unified/20170313.080125accepted/tizen/tv/20170310.031818accepted/tizen/mobile/20170310.031742accepted/tizen/ivi/20170310.031853accepted/tizen/common/20170309.175549
Change "Unkown" to empty string
Change-Id: I09e4229ae2a98195ae3f9721521821e24fc2bdde
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
-rw-r--r-- | packaging/libmedia-service.spec | 2 | ||||
-rwxr-xr-x | src/common/media-svc-util.c | 40 | ||||
-rwxr-xr-x | src/include/common/media-svc-env.h | 2 |
3 files changed, 22 insertions, 22 deletions
diff --git a/packaging/libmedia-service.spec b/packaging/libmedia-service.spec index e936cf7..325f9ae 100644 --- a/packaging/libmedia-service.spec +++ b/packaging/libmedia-service.spec @@ -1,6 +1,6 @@ Name: libmedia-service Summary: Media information service library for multimedia applications -Version: 0.2.93 +Version: 0.2.94 Release: 0 Group: Multimedia/Libraries License: Apache-2.0 and public domain diff --git a/src/common/media-svc-util.c b/src/common/media-svc-util.c index 2ad040d..7321ccd 100755 --- a/src/common/media-svc-util.c +++ b/src/common/media-svc-util.c @@ -1120,37 +1120,37 @@ int _media_svc_set_default_value(media_svc_content_info_s *content_info, bool re SAFE_FREE(title); } else { media_svc_error("Can't extract title"); - ret = __media_svc_malloc_and_strncpy(&content_info->media_meta.title, MEDIA_SVC_TAG_UNKNOWN); - media_svc_retv_del_if(ret != MS_MEDIA_ERR_NONE, ret, content_info); + content_info->media_meta.title = g_strdup(MEDIA_SVC_TAG_UNKNOWN); + media_svc_retv_del_if(content_info->media_meta.title == NULL, MS_MEDIA_ERR_INTERNAL, content_info); } /* Set default value before extracting meta information */ - ret = __media_svc_malloc_and_strncpy(&content_info->media_meta.description, MEDIA_SVC_TAG_UNKNOWN); - media_svc_retv_del_if(ret != MS_MEDIA_ERR_NONE, ret, content_info); + content_info->media_meta.description = g_strdup(MEDIA_SVC_TAG_UNKNOWN); + media_svc_retv_del_if(content_info->media_meta.description == NULL, MS_MEDIA_ERR_INTERNAL, content_info); - ret = __media_svc_malloc_and_strncpy(&content_info->media_meta.copyright, MEDIA_SVC_TAG_UNKNOWN); - media_svc_retv_del_if(ret != MS_MEDIA_ERR_NONE, ret, content_info); + content_info->media_meta.copyright = g_strdup(MEDIA_SVC_TAG_UNKNOWN); + media_svc_retv_del_if(content_info->media_meta.copyright == NULL, MS_MEDIA_ERR_INTERNAL, content_info); - ret = __media_svc_malloc_and_strncpy(&content_info->media_meta.track_num, MEDIA_SVC_TAG_UNKNOWN); - media_svc_retv_del_if(ret != MS_MEDIA_ERR_NONE, ret, content_info); + content_info->media_meta.track_num = g_strdup(MEDIA_SVC_TAG_UNKNOWN); + media_svc_retv_del_if(content_info->media_meta.track_num == NULL, MS_MEDIA_ERR_INTERNAL, content_info); - ret = __media_svc_malloc_and_strncpy(&content_info->media_meta.album, MEDIA_SVC_TAG_UNKNOWN); - media_svc_retv_del_if(ret != MS_MEDIA_ERR_NONE, ret, content_info); + content_info->media_meta.album = g_strdup(MEDIA_SVC_TAG_UNKNOWN); + media_svc_retv_del_if(content_info->media_meta.album == NULL, MS_MEDIA_ERR_INTERNAL, content_info); - ret = __media_svc_malloc_and_strncpy(&content_info->media_meta.artist, MEDIA_SVC_TAG_UNKNOWN); - media_svc_retv_del_if(ret != MS_MEDIA_ERR_NONE, ret, content_info); + content_info->media_meta.artist = g_strdup(MEDIA_SVC_TAG_UNKNOWN); + media_svc_retv_del_if(content_info->media_meta.artist == NULL, MS_MEDIA_ERR_INTERNAL, content_info); - ret = __media_svc_malloc_and_strncpy(&content_info->media_meta.album_artist, MEDIA_SVC_TAG_UNKNOWN); - media_svc_retv_del_if(ret != MS_MEDIA_ERR_NONE, ret, content_info); + content_info->media_meta.album_artist = g_strdup(MEDIA_SVC_TAG_UNKNOWN); + media_svc_retv_del_if(content_info->media_meta.album_artist == NULL, MS_MEDIA_ERR_INTERNAL, content_info); - ret = __media_svc_malloc_and_strncpy(&content_info->media_meta.genre, MEDIA_SVC_TAG_UNKNOWN); - media_svc_retv_del_if(ret != MS_MEDIA_ERR_NONE, ret, content_info); + content_info->media_meta.genre = g_strdup(MEDIA_SVC_TAG_UNKNOWN); + media_svc_retv_del_if(content_info->media_meta.genre == NULL, MS_MEDIA_ERR_INTERNAL, content_info); - ret = __media_svc_malloc_and_strncpy(&content_info->media_meta.composer, MEDIA_SVC_TAG_UNKNOWN); - media_svc_retv_del_if(ret != MS_MEDIA_ERR_NONE, ret, content_info); + content_info->media_meta.composer = g_strdup(MEDIA_SVC_TAG_UNKNOWN); + media_svc_retv_del_if(content_info->media_meta.composer == NULL, MS_MEDIA_ERR_INTERNAL, content_info); - ret = __media_svc_malloc_and_strncpy(&content_info->media_meta.year, MEDIA_SVC_TAG_UNKNOWN); - media_svc_retv_del_if(ret != MS_MEDIA_ERR_NONE, ret, content_info); + content_info->media_meta.year = g_strdup(MEDIA_SVC_TAG_UNKNOWN); + media_svc_retv_del_if(content_info->media_meta.year == NULL, MS_MEDIA_ERR_INTERNAL, content_info); if (refresh) { media_svc_debug("refresh"); diff --git a/src/include/common/media-svc-env.h b/src/include/common/media-svc-env.h index d72a1de..c61f5ce 100755 --- a/src/include/common/media-svc-env.h +++ b/src/include/common/media-svc-env.h @@ -134,7 +134,7 @@ extern "C" { #define MEDIA_SVC_PATHNAME_SIZE 4096 /**< Length of Path name. */ #define MEDIA_SVC_UUID_SIZE 36 /**< Length of UUID*/ -#define MEDIA_SVC_TAG_UNKNOWN "Unknown" +#define MEDIA_SVC_TAG_UNKNOWN "" #define MEDIA_SVC_MEDIA_PATH tzplatform_mkpath(TZ_USER_SHARE, "media") /**< Media path*/ #define MEDIA_SVC_THUMB_PATH_PREFIX tzplatform_mkpath(TZ_USER_SHARE, "media/.thumb") /**< Thumbnail path prefix*/ #define MEDIA_SVC_THUMB_INTERNAL_PATH tzplatform_mkpath(TZ_USER_SHARE, "media/.thumb/phone") /**< Phone thumbnail path*/ |