Summary: If we fail to lock the front buffer, we will not get a valid
bo returned so we should not be calling other functions which require
a bo.
@fix
Signed-off-by: Chris Michael <cp.michael@samsung.com>
if (!(ob = data)) return;
bo = ob->priv.bo[ob->priv.curr];
+ if (!bo) return;
fb = _evas_outbuf_fb_get(ob->info->info.dev, bo);
if (fb) fb->pending_flip = EINA_FALSE;
Ecore_Drm_Fb *fb;
ob->priv.bo[ob->priv.curr] = gbm_surface_lock_front_buffer(ob->surface);
+ if (!ob->priv.bo[ob->priv.curr])
+ {
+ WRN("Could not lock front buffer: %m");
+ return;
+ }
fb = _evas_outbuf_fb_get(ob->info->info.dev, ob->priv.bo[ob->priv.curr]);
if (fb)