projects
/
platform
/
core
/
uifw
/
libtbm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31b70cd
)
export_fd returns negative value if fail
46/48346/1
author
Boram Park
<boram1288.park@samsung.com>
Fri, 18 Sep 2015 08:23:21 +0000
(17:23 +0900)
committer
Boram Park
<boram1288.park@samsung.com>
Fri, 18 Sep 2015 08:24:03 +0000
(17:24 +0900)
Change-Id: Ide1d1706745e0f8ccde7c4e6a2d1d5c52af947d4
src/tbm_bufmgr.c
patch
|
blob
|
history
diff --git
a/src/tbm_bufmgr.c
b/src/tbm_bufmgr.c
index
61e5a70
..
a04780c
100644
(file)
--- a/
src/tbm_bufmgr.c
+++ b/
src/tbm_bufmgr.c
@@
-1390,7
+1390,7
@@
tbm_bo_export (tbm_bo bo)
tbm_fd
tbm_bo_export_fd (tbm_bo bo)
{
- TBM_RETURN_VAL_IF_FAIL (_tbm_bo_is_valid(bo),
0
);
+ TBM_RETURN_VAL_IF_FAIL (_tbm_bo_is_valid(bo),
-1
);
tbm_bufmgr bufmgr;
int ret;
@@
-1399,7
+1399,7
@@
tbm_bo_export_fd (tbm_bo bo)
pthread_mutex_lock (&bufmgr->lock);
ret = bufmgr->backend->bo_export_fd (bo);
- if (
!ret
)
+ if (
ret < 0
)
{
_tbm_set_last_result (TBM_BO_ERROR_EXPORT_FD_FAILED);
pthread_mutex_unlock (&bufmgr->lock);