pthread_mutex_lock(&gLock);
_tbm_set_last_result(TBM_ERROR_NONE);
- TBM_RETURN_VAL_IF_FAIL(path != NULL, 0);
+ if (!path) {
+ TBM_ERR("path is null.\n");
+ pthread_mutex_unlock(&gLock);
+ return 0;
+ }
+
TBM_DBG("path=%s\n", path);
count = _tbm_util_get_max_surface_size(&w, &h);
if (count == 0) {
TBM_ERR("No tbm_surface.\n");
pthread_mutex_unlock(&gLock);
- return 1;
+ return 0;
}
tbm_surface_internal_dump_with_scale_start(path, w, h, count, scale_factor);