content_error("media_files_register failed : %d", ret);
if (unlink(list_path) < 0)
content_stderror("failed to delete");
+ g_free(_cb_data);
return _content_error_capi(ret);
}
g_free(_media->thumbnail_path);
g_free(_media->description);
g_free(_media->title);
-#ifdef _USE_TVPD_MODE
- g_free(_media->modified_month);
-#endif
g_free(_media->storage_uuid);
if (_media->image_meta) {
_dst->description = g_strdup(_src->description);
_dst->title = g_strdup(_src->title);
_dst->storage_uuid = g_strdup(_src->storage_uuid);
-#ifdef _USE_TVPD_MODE
- _dst->modified_month = g_strdup(_src->modified_month);
-#endif
_dst->media_type = _src->media_type;
_dst->size = _src->size;
_dst->added_time = _src->added_time;
return _media_db_get_tag(media_id, filter, callback, user_data);
}
-// LCOV_EXCL_STOP
+
int media_info_get_bookmark_count_from_db(const char *media_id, filter_h filter, int *bookmark_count)
{
+ content_warn("DEPRECATION WARNING: media_info_get_bookmark_count_from_db() is deprecated and will be removed from next release.");
content_retip_if_fail(STRING_VALID(media_id));
content_retip_if_fail(bookmark_count);
int media_info_foreach_bookmark_from_db(const char *media_id, filter_h filter, media_bookmark_cb callback, void *user_data)
{
+ content_warn("DEPRECATION WARNING: media_info_foreach_bookmark_from_db() is deprecated and will be removed from next release.");
content_retip_if_fail(STRING_VALID(media_id));
content_retip_if_fail(callback);
return _media_db_get_bookmark(media_id, filter, callback, user_data);
}
-// LCOV_EXCL_START
+
int media_info_get_face_count_from_db(const char *media_id, filter_h filter, int *face_count)
{
content_warn("DEPRECATION WARNING: media_info_get_face_count_from_db() is deprecated and will be removed from next release.");
return MEDIA_CONTENT_ERROR_NONE;
}
-
-int media_info_get_stitched_engine(media_info_h media, int *stitched_info)
-{
- media_info_s *_media = (media_info_s*)media;
-
- content_retip_if_fail(media);
- content_retip_if_fail(stitched_info);
-
- *stitched_info = _media->stitched_info & 0x0000FFFF;
-
- return MEDIA_CONTENT_ERROR_NONE;
-}
-
-int media_info_get_modified_month(media_info_h media, char **modified_month)
-{
- media_info_s *_media = (media_info_s*)media;
-
- content_retip_if_fail(media);
- content_retip_if_fail(modified_month);
-
- *modified_month = g_strdup(_media->modified_month);
-
- return MEDIA_CONTENT_ERROR_NONE;
-}
-
#endif
int media_info_get_media_from_db(const char *media_id, media_info_h *media)
/* Send notification for this update */
content_debug("Update is successful. Send notification for this");
if (_media->file_path && _media->mime_type)
- media_svc_publish_noti(MS_MEDIA_ITEM_UPDATE, _media->file_path, _media->media_type, _media->media_id, _media->mime_type);
+ media_svc_publish_update_noti(_media->file_path, _media->media_type, _media->media_id, _media->mime_type);
else
content_error("Can't Send Noti : path or mime type is NULL");
}