e = (Entry *) eina_hash_find(file_entries, &entry_id);
if (!e || e->type != CSERVE2_IMAGE_FILE)
- return NULL;
+ {
+ ERR("Could not find file entry %u", entry_id);
+ return NULL;
+ }
return (File_Entry *) e;
}
e = (Entry *) eina_hash_find(image_entries, &entry_id);
if (!e || e->type != CSERVE2_IMAGE_DATA)
- return NULL;
+ {
+ ERR("Could not find image entry %u", entry_id);
+ return NULL;
+ }
return (Image_Entry *) e;
}
Image_Data *idata;
idata = _image_data_find(ENTRYID(ientry));
- if (!idata || !idata->refcount)
- {
- ERR("Image data not found for entry %u", ENTRYID(ientry));
- return NULL;
- }
+ if (!idata) return NULL;
fd = _file_data_find(idata->file_id);
if (!fd)
Image_Data *idata;
idata = _image_data_find(ENTRYID(ientry));
- if (!idata)
- {
- ERR("Image data %u not found", ENTRYID(ientry));
- return NULL;
- }
+ if (!idata) return NULL;
_entry_load_finish(ASENTRY(ientry));
ASENTRY(ientry)->request = NULL;
int size;
idata = _image_data_find(ENTRYID(ientry));
+ if (!idata) return;
size = _image_entry_size_get(ientry);
if ((size > max_unused_mem_usage) || !(idata->doload))
fd->invalid = EINA_TRUE;
fentry = _file_entry_find(fd->id);
- if (!fentry)
- {
- ERR("Could not find file entry for id %u", fd->id);
- continue;
- }
+ if (!fentry) continue;
fentry->watcher = NULL;
if (idata->unused)
_image_entry_free(ie);
}
- else ERR("Image data %u not found", ENTRYID(ie));
}
_file_id_free(fd);
File_Data *fd;
idata = _image_data_find(ENTRYID(ientry));
+ if (!idata) return EINA_TRUE;
// accounting numbers
msg->images.images_loaded++;
File_Entry *fentry;
Image_Data *idata;
-#warning NOT IMPLEMENTED. PLEASE REIMLPEMENT.
return -1;
#if 0
+ if (!ientry) return -1;
- if (!ientry || !idata) return -1;
+ idata = _image_data_find(ENTRYID(ientry));
+ if (!idata) return -1;
dst_w = entry->opts.scale_load.dst_w;
dst_h = entry->opts.scale_load.dst_h;
ientry = (Image_Entry *) ref->entry;
idata = _image_data_find(ENTRYID(ientry));
- if (!idata)
- {
- ERR("Image data not found for entry %u", ENTRYID(ientry));
- return;
- }
+ if (!idata) return;
fd = _file_data_find(idata->file_id);
if (!fd || fd->invalid)