ecore_evas_extn: Remove aka latch logic on fn_prepare function

Summary:
current extn_socket_prepare function logic could run into dead-end
because extnbuf_lock return null on failure of taking a lock.

this patch removes aka latch logic that guide the function to dead-end.

Reviewers: cedric, raster, zmike, jypark

Subscribers: zmike

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D6054
This commit is contained in:
Wonki Kim 2018-05-16 11:41:19 -04:00 committed by Mike Blumenkrantz
parent 5be9b1929e
commit d92b195fe2
1 changed files with 8 additions and 5 deletions

View File

@ -1513,16 +1513,19 @@ _ecore_evas_extn_socket_prepare(Ecore_Evas *ee)
{
Extn *extn;
Ecore_Evas_Engine_Buffer_Data *bdata = ee->engine.data;
int cur_b;
void *pixels = NULL;
extn = bdata->data;
if (!extn) return EINA_FALSE;
if (bdata->pixels)
if (extn->b[extn->cur_b].buf)
{
cur_b = extn->cur_b;
bdata->pixels = _extnbuf_lock(extn->b[cur_b].buf, NULL, NULL, NULL);
return EINA_TRUE;
pixels = _extnbuf_lock(extn->b[extn->cur_b].buf, NULL, NULL, NULL);
if (pixels)
{
bdata->pixels = pixels;
return EINA_TRUE;
}
}
return EINA_FALSE;
}