evas: fix access to possibility undefined function.

This commit is contained in:
Cedric BAIL 2016-03-17 16:12:51 -07:00
parent dcd5fb7835
commit 5f908de18d
1 changed files with 2 additions and 1 deletions

View File

@ -3271,7 +3271,8 @@ _evas_image_efl_gfx_buffer_buffer_get(Eo *eo_obj, Evas_Image_Data *o,
// FIXME: length needs to be properly checked with the engine
// as we just ignore l,r,t,b here
ENFN->image_stride_get(ENDT, o->engine_data, &stride);
if (ENFN->image_stride_get)
ENFN->image_stride_get(ENDT, o->engine_data, &stride);
if (!stride)
stride = _evas_common_rgba_image_surface_size(o->cur->image.w, 1, o->cur->cspace, NULL, NULL, NULL, NULL);