X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Ftbm_module.c;h=16beb7f01911c6cf785f7cc694060a607711a8b1;hb=5d6f1d8855f0301ac781a5e66068344ed636a0b0;hp=e53f69c6a21ac3efcad8d66df2db82fe93e28a76;hpb=cf910ad64c1459f4450e97733a635f662f068ea4;p=platform%2Fcore%2Fuifw%2Flibtbm.git diff --git a/src/tbm_module.c b/src/tbm_module.c index e53f69c..16beb7f 100644 --- a/src/tbm_module.c +++ b/src/tbm_module.c @@ -701,8 +701,8 @@ tbm_module_alloc_surface_data(tbm_module *module, int width, int height, int for 0, (hal_tbm_error *)error); if (!surface_data->hal_surface) { - TBM_ERR("hal_tbm_bufmgr_alloc_surface failed."); - *error = TBM_ERROR_INVALID_OPERATION; + if (*error != TBM_ERROR_NOT_SUPPORTED) // do not print the error message when it is not supported. + TBM_ERR("hal_tbm_bufmgr_alloc_surface failed."); free(surface_data); return NULL; } @@ -1292,7 +1292,7 @@ tbm_bo_data_map(tbm_bo_data *bo_data, int device, int opt, tbm_error_e *error) tbm_backend_bo_func *bo_func = NULL; tbm_bufmgr_backend backend = NULL; tbm_bo_handle bo_handle = (tbm_bo_handle)NULL; - hal_tbm_bo_handle hbo_handle; + hal_tbm_bo_handle hbo_handle = (hal_tbm_bo_handle)NULL; TBM_RETURN_VAL_SET_ERR_IF_FAIL(bo_data, (tbm_bo_handle)NULL, *error, TBM_ERROR_INVALID_PARAMETER); TBM_RETURN_VAL_SET_ERR_IF_FAIL(bo_data->module, (tbm_bo_handle)NULL, *error, TBM_ERROR_INVALID_PARAMETER);