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:
f9ed8c9
)
Fix to check validation of file
43/152443/2
author
Sangjin Lee
<lsj119@samsung.com>
Tue, 26 Sep 2017 07:04:35 +0000
(16:04 +0900)
committer
Boram Park
<boram1288.park@samsung.com>
Tue, 26 Sep 2017 23:08:29 +0000
(23:08 +0000)
Change-Id: Ic5356fa00420f7e713b0a2ff04a0fcf2fc01aac1
src/tbm_surface_internal.c
patch
|
blob
|
history
diff --git
a/src/tbm_surface_internal.c
b/src/tbm_surface_internal.c
index 75103dd4a759c7a81de3bceb97fd159ff3abffdc..d8c67aae9bb9afe337cc696e4ba9b213d4435616 100644
(file)
--- a/
src/tbm_surface_internal.c
+++ b/
src/tbm_surface_internal.c
@@
-2336,13
+2336,13
@@
tbm_surface_internal_capture_shm_buffer(void *ptr, int w, int h, int stride,
return 0;
}
+ snprintf(file, sizeof(file), "%s/%s.%s", path , name, dump_postfix[0]);
+
if (!access(file, 0)) {
TBM_LOG_E("can't capture buffer, exist file %sTBM_FORMAT_XRGB8888", file);
return 0;
}
- snprintf(file, sizeof(file), "%s/%s.%s", path , name, dump_postfix[0]);
-
_tbm_surface_internal_dump_file_png(file, ptr, stride, h, 0);
TBM_TRACE("Capture %s \n", file);