emotion: Check engine for NULL before dereferencing.

It might be that our engine list is empty and thus our engine might still
be set to NULL. Better check and return if this is the case instead of
dereferencing NULL.
This commit is contained in:
Stefan Schmidt 2013-06-25 14:36:38 +01:00
parent abf8a3b7bf
commit 8deb75463b
1 changed files with 2 additions and 0 deletions

View File

@ -1027,6 +1027,8 @@ _image_resize(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_inf
}
}
if (!engine) return;
if (strstr(engine, "software") != NULL)
{
caps = gst_caps_new_simple("video/x-raw-rgb",