From ce4c1bef9b4cdec2d91a61004fa2d4ee1737c6e0 Mon Sep 17 00:00:00 2001 From: Minje Ahn Date: Thu, 19 Nov 2015 10:22:40 +0900 Subject: [PATCH] Remove unused parameter Change-Id: Ie545d8e7a446da305b68b92eabf5418cb33b5ca0 Signed-off-by: Minje Ahn --- src/media_folder.c | 2 +- src/media_info.c | 26 +++++++++++++------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/media_folder.c b/src/media_folder.c index fb66b18..029b8f1 100755 --- a/src/media_folder.c +++ b/src/media_folder.c @@ -396,7 +396,7 @@ int media_folder_update_to_db(media_folder_h folder) /*Update Pinyin If Support Pinyin*/ media_svc_check_pinyin_support(&pinyin_support); if (pinyin_support) - media_svc_get_pinyin(_content_get_db_handle(), _folder->name, &name_pinyin); + media_svc_get_pinyin(_folder->name, &name_pinyin); sql = sqlite3_mprintf("UPDATE %Q SET path='%q', name='%q', modified_time=%d, name_pinyin='%q' WHERE folder_uuid=%Q", DB_TABLE_FOLDER, _folder->path, _folder->name, _folder->modified_time, name_pinyin, _folder->folder_id); diff --git a/src/media_info.c b/src/media_info.c index fffad1d..8a8cc0b 100755 --- a/src/media_info.c +++ b/src/media_info.c @@ -563,13 +563,13 @@ int media_info_delete_batch_from_db(filter_h filter) char *storage_path = NULL; media_svc_get_storage_path(_content_get_db_handle(), _filter->storage_id, &storage_path); if (STRING_VALID(storage_path)) - media_svc_publish_noti(_content_get_db_handle(), MS_MEDIA_ITEM_DIRECTORY, MS_MEDIA_ITEM_UPDATE, storage_path, -1, NULL, NULL); + media_svc_publish_noti(MS_MEDIA_ITEM_DIRECTORY, MS_MEDIA_ITEM_UPDATE, storage_path, -1, NULL, NULL); SAFE_FREE(storage_path); } else { /*FIX ME*/ - media_svc_publish_noti(_content_get_db_handle(), MS_MEDIA_ITEM_DIRECTORY, MS_MEDIA_ITEM_UPDATE, MEDIA_ROOT_PATH_INTERNAL, -1, NULL, NULL); - media_svc_publish_noti(_content_get_db_handle(), MS_MEDIA_ITEM_DIRECTORY, MS_MEDIA_ITEM_UPDATE, MEDIA_ROOT_PATH_SDCARD, -1, NULL, NULL); + media_svc_publish_noti(MS_MEDIA_ITEM_DIRECTORY, MS_MEDIA_ITEM_UPDATE, MEDIA_ROOT_PATH_INTERNAL, -1, NULL, NULL); + media_svc_publish_noti(MS_MEDIA_ITEM_DIRECTORY, MS_MEDIA_ITEM_UPDATE, MEDIA_ROOT_PATH_SDCARD, -1, NULL, NULL); } __media_info_delete_thumb_from_list(thumb_list); @@ -2302,23 +2302,23 @@ int media_info_update_to_db(media_info_h media) media_svc_check_pinyin_support(&pinyin_support); if (pinyin_support) { if (STRING_VALID(_media->display_name)) - media_svc_get_pinyin(_content_get_db_handle(), _media->display_name, &file_name_pinyin); + media_svc_get_pinyin(_media->display_name, &file_name_pinyin); if (STRING_VALID(_media->description)) - media_svc_get_pinyin(_content_get_db_handle(), _media->description, &description_pinyin); + media_svc_get_pinyin(_media->description, &description_pinyin); if (STRING_VALID(_media->author)) - media_svc_get_pinyin(_content_get_db_handle(), _media->author, &author_pinyin); + media_svc_get_pinyin(_media->author, &author_pinyin); if (STRING_VALID(_media->provider)) - media_svc_get_pinyin(_content_get_db_handle(), _media->provider, &provider_pinyin); + media_svc_get_pinyin(_media->provider, &provider_pinyin); if (STRING_VALID(_media->content_name)) - media_svc_get_pinyin(_content_get_db_handle(), _media->content_name, &content_name_pinyin); + media_svc_get_pinyin(_media->content_name, &content_name_pinyin); if (STRING_VALID(_media->category)) - media_svc_get_pinyin(_content_get_db_handle(), _media->category, &category_pinyin); + media_svc_get_pinyin(_media->category, &category_pinyin); if (STRING_VALID(_media->location_tag)) - media_svc_get_pinyin(_content_get_db_handle(), _media->location_tag, &location_tag_pinyin); + media_svc_get_pinyin(_media->location_tag, &location_tag_pinyin); if (STRING_VALID(_media->age_rating)) - media_svc_get_pinyin(_content_get_db_handle(), _media->age_rating, &age_rating_pinyin); + media_svc_get_pinyin(_media->age_rating, &age_rating_pinyin); if (STRING_VALID(_media->keyword)) - media_svc_get_pinyin(_content_get_db_handle(), _media->keyword, &keyword_pinyin); + media_svc_get_pinyin(_media->keyword, &keyword_pinyin); } char *album = NULL; @@ -2404,7 +2404,7 @@ int media_info_update_to_db(media_info_h media) /* Send notification for this update */ media_content_debug("Update is successfull. Send notification for this"); if (_media->file_path && _media->mime_type) - media_svc_publish_noti(_content_get_db_handle(), MS_MEDIA_ITEM_FILE, MS_MEDIA_ITEM_UPDATE, _media->file_path, _media->media_type, _media->media_id, _media->mime_type); + media_svc_publish_noti(MS_MEDIA_ITEM_FILE, MS_MEDIA_ITEM_UPDATE, _media->file_path, _media->media_type, _media->media_id, _media->mime_type); else media_content_error("Can't Send Noti : path or mime type is NULL"); } -- 2.7.4