media_content_order_e sort_type);
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);
bool _ge_data_is_default_album(const char *match_folder,
ge_album_s * mcluster);
bool _ge_data_is_camera_album(ge_album_s * mcluster);
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;
-}
/*
* Check it's default album, Camera, Downloads
}
if (!gitem->item->file_url) {
- _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--;