diff options
author | Minje Ahn <minje.ahn@samsung.com> | 2017-08-04 11:09:28 +0900 |
---|---|---|
committer | Minje Ahn <minje.ahn@samsung.com> | 2017-08-04 11:09:28 +0900 |
commit | 99cff1ef6680a5d9532e56b77692c771411ba006 (patch) | |
tree | 112a69802c549d84438e7c43451a86c78863362a | |
parent | 5b06661e2a91fba6b0923dbe047828fecfbce85f (diff) | |
download | media-content-99cff1ef6680a5d9532e56b77692c771411ba006.tar.gz media-content-99cff1ef6680a5d9532e56b77692c771411ba006.tar.bz2 media-content-99cff1ef6680a5d9532e56b77692c771411ba006.zip |
Remove unused input parametersubmit/tizen/20170804.052933
For cancel, Use request_id instead of full path
Change-Id: I5c840edab2da0728adf78149ae032355c5219883
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
-rwxr-xr-x | packaging/capi-content-media-content.spec | 2 | ||||
-rwxr-xr-x | src/media_info.c | 9 |
2 files changed, 3 insertions, 8 deletions
diff --git a/packaging/capi-content-media-content.spec b/packaging/capi-content-media-content.spec index c216089..a30d87b 100755 --- a/packaging/capi-content-media-content.spec +++ b/packaging/capi-content-media-content.spec @@ -1,6 +1,6 @@ Name: capi-content-media-content Summary: A Media content library in Tizen Native API -Version: 0.3.20 +Version: 0.3.21 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/media_info.c b/src/media_info.c index 660255b..901761b 100755 --- a/src/media_info.c +++ b/src/media_info.c @@ -3118,14 +3118,9 @@ int media_info_cancel_thumbnail(media_info_h media) { int ret = MEDIA_CONTENT_ERROR_NONE; media_info_s *_media = (media_info_s*)media; - char repl_path[MAX_PATH_LEN] = {0, }; - - if (_media != NULL && STRING_VALID(_media->media_id) && STRING_VALID(_media->file_path) && _media->request_id > 0) { - memset(repl_path, 0, sizeof(repl_path)); - ret = _media_content_replace_path(_media->file_path, repl_path); - media_content_retvm_if(!STRING_VALID(repl_path), MEDIA_CONTENT_ERROR_INVALID_OPERATION, "path replacement failed"); - ret = thumbnail_request_cancel_media(_media->request_id, repl_path); + if (_media != NULL && STRING_VALID(_media->media_id) && _media->request_id > 0) { + ret = thumbnail_request_cancel_media(_media->request_id); ret = _content_error_capi(MEDIA_THUMBNAIL_TYPE, ret); } else { media_content_error("INVALID_PARAMETER(0x%08x)", MEDIA_CONTENT_ERROR_INVALID_PARAMETER); |