Reduce DB connection when noti 12/206012/2 submit/tizen/20190515.071609
authorMinje Ahn <minje.ahn@samsung.com>
Mon, 13 May 2019 08:00:02 +0000 (17:00 +0900)
committerhj kim <backto.kim@samsung.com>
Wed, 15 May 2019 07:15:29 +0000 (07:15 +0000)
Change-Id: I522ec27bce109b9c5d5da94055ef9983ea8e8020
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
src/media_info.c

index b8ad82c..8a524b4 100755 (executable)
@@ -1901,7 +1901,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(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_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");
                }
@@ -1945,7 +1945,7 @@ int media_info_move_to_db(media_info_h media, const char* dst_path)
                return _content_error_capi(ret);
        }
 
-       ret = media_svc_move_item(_content_get_db_handle(), org_repl_path, repl_path, _content_get_uid());
+       ret = media_svc_move_item(_content_get_db_handle(), org_repl_path, repl_path, _media->media_id, _media->media_type, _media->mime_type, _content_get_uid());
        return _content_error_capi(ret);
 }