Eina_List * sel_id);
int _ge_data_get_item_cnt(ge_ugdata * ugd, const char *cluster_id,
int album_type, int *item_cnt);
- int _ge_data_del_media_by_id(ge_ugdata * ugd, const char *media_id);
int _ge_data_create_thumb(ge_media_s * item,
media_thumbnail_completed_cb callback,
void *data);
return 0;
}
-/**
- *
- * @param ugd
- * @param media_id
- * @return
- */
-int _ge_data_del_media_by_id(ge_ugdata * ugd, const char *media_id)
-{
- GE_CHECK_VAL(media_id, -1);
- int ret = media_info_delete_from_db(media_id);
- if (ret != 0) {
- ge_dbgE("Delete media failed[%d]!", ret);
- return -1;
- }
-
- return 0;
-}
-
/* Creates a thumbnail image for given the media, asynchronously */
/**
*
if (!gitem->item->file_url) {
ge_dbgE("file_url is invalid!");
- _ge_data_del_media_by_id(ugd, gitem->item->uuid);
_ge_data_util_free_item(gitem);
ugd->thumbs_d->medias_cnt--;
i--;
if (!gitem->item->file_url) {
ge_dbgE("file_url is invalid!");
- _ge_data_del_media_by_id(ugd, gitem->item->uuid);
_ge_data_util_free_item(gitem);
ugd->thumbs_d->medias_cnt--;
i--;