return MS_MEDIA_ERR_NONE;
}
-static int __dcm_scan_get_scan_status(dcm_svc_item_s *scan_item, dcm_face_scan_status_e *scan_status)
-{
- DCM_CHECK_VAL(scan_item, MS_MEDIA_ERR_INVALID_PARAMETER);
- DCM_CHECK_VAL(scan_item->media_uuid, MS_MEDIA_ERR_INVALID_PARAMETER);
-
- /* Check if this media is scanned or not */
- return dcm_svc_db_check_scanned_by_media_uuid(scan_item->media_uuid, scan_item->modified_time, scan_status);
-}
-
static int __dcm_scan_send_result(dcm_scan_s *data, const char *msg, const unsigned int count, dcm_ipc_port_e port)
{
if ((data->scan_all_item_list == NULL) && (data->scan_single_item_list == NULL)) {
/* Get necessary information from db again.
* Media information will be inserted after face is detected.
* If media uuid does not exist, retry is needed */
- ret = __dcm_scan_get_scan_status(scan_item, &scan_status);
+ ret = dcm_svc_db_check_scanned_by_media_uuid(scan_item->media_uuid, scan_item->modified_time, &scan_status);
if (ret != MS_MEDIA_ERR_NONE) {
dcm_error("Failed to get scan item info from db! err: %d", ret);
return ret;