forked from enlightenment/efl
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:
parent
5be9b1929e
commit
d92b195fe2
|
@ -1513,16 +1513,19 @@ _ecore_evas_extn_socket_prepare(Ecore_Evas *ee)
|
||||||
{
|
{
|
||||||
Extn *extn;
|
Extn *extn;
|
||||||
Ecore_Evas_Engine_Buffer_Data *bdata = ee->engine.data;
|
Ecore_Evas_Engine_Buffer_Data *bdata = ee->engine.data;
|
||||||
int cur_b;
|
void *pixels = NULL;
|
||||||
|
|
||||||
extn = bdata->data;
|
extn = bdata->data;
|
||||||
if (!extn) return EINA_FALSE;
|
if (!extn) return EINA_FALSE;
|
||||||
|
|
||||||
if (bdata->pixels)
|
if (extn->b[extn->cur_b].buf)
|
||||||
{
|
{
|
||||||
cur_b = extn->cur_b;
|
pixels = _extnbuf_lock(extn->b[extn->cur_b].buf, NULL, NULL, NULL);
|
||||||
bdata->pixels = _extnbuf_lock(extn->b[cur_b].buf, NULL, NULL, NULL);
|
if (pixels)
|
||||||
return EINA_TRUE;
|
{
|
||||||
|
bdata->pixels = pixels;
|
||||||
|
return EINA_TRUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue