summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWonki Kim <wonki_.kim@samsung.com>2018-05-16 11:41:19 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2018-05-16 11:41:19 -0400
commitd92b195fe2913e773455d28998f06d662f36b9d2 (patch)
tree4b47d0443f1ff868ebecf5dd8c6521337e142436
parent5be9b1929e90bda952a1a73bf2adb0f7c0bad686 (diff)
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
-rw-r--r--src/modules/ecore_evas/engines/extn/ecore_evas_extn.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/modules/ecore_evas/engines/extn/ecore_evas_extn.c b/src/modules/ecore_evas/engines/extn/ecore_evas_extn.c
index 21b3c1ea06..38b00547db 100644
--- a/src/modules/ecore_evas/engines/extn/ecore_evas_extn.c
+++ b/src/modules/ecore_evas/engines/extn/ecore_evas_extn.c
@@ -1513,16 +1513,19 @@ _ecore_evas_extn_socket_prepare(Ecore_Evas *ee)
1513{ 1513{
1514 Extn *extn; 1514 Extn *extn;
1515 Ecore_Evas_Engine_Buffer_Data *bdata = ee->engine.data; 1515 Ecore_Evas_Engine_Buffer_Data *bdata = ee->engine.data;
1516 int cur_b; 1516 void *pixels = NULL;
1517 1517
1518 extn = bdata->data; 1518 extn = bdata->data;
1519 if (!extn) return EINA_FALSE; 1519 if (!extn) return EINA_FALSE;
1520 1520
1521 if (bdata->pixels) 1521 if (extn->b[extn->cur_b].buf)
1522 { 1522 {
1523 cur_b = extn->cur_b; 1523 pixels = _extnbuf_lock(extn->b[extn->cur_b].buf, NULL, NULL, NULL);
1524 bdata->pixels = _extnbuf_lock(extn->b[cur_b].buf, NULL, NULL, NULL); 1524 if (pixels)
1525 return EINA_TRUE; 1525 {
1526 bdata->pixels = pixels;
1527 return EINA_TRUE;
1528 }
1526 } 1529 }
1527 return EINA_FALSE; 1530 return EINA_FALSE;
1528} 1531}