}
if (_mmcamcorder_conf_get_default_value_int(handle, configure_info->type, category, name, value)) {
- /* _mmcam_dbg_log("Get[%s] int[%d]", name, *value); */
+ /*_mmcam_dbg_log("Get[%s] int[%d]", name, *value);*/
return TRUE;
}
- _mmcam_dbg_warn("Faild to get int... check it...Category[%d],Name[%s]", category, name);
+ _mmcam_dbg_err("Faild to get int... check it...Category[%d],Name[%s]", category, name);
return FALSE;
}
*value = NULL;
- _mmcam_dbg_warn("Faild to get int pair array... check it...Category[%d],Name[%s]", category, name);
+ /*_mmcam_dbg_warn("Faild to get int pair array... check it...Category[%d],Name[%s]", category, name);*/
return FALSE;
}
if (!strcmp(((type_string*)(info->detail_info[i]))->name , name)) {
*value = ((type_string*)(info->detail_info[i]))->value;
- /* _mmcam_dbg_log( "Get[%s] string[%s]", name, *value ); */
+ /*_mmcam_dbg_log( "Get[%s] string[%s]", name, *value ? *value : "NULL" );*/
return TRUE;
}
}
}
if (_mmcamcorder_conf_get_default_value_string(handle, configure_info->type, category, name, value)) {
- /* _mmcam_dbg_log("Get[%s]string[%s]", name, *value); */
+ /*_mmcam_dbg_log( "Get[%s] string[%s]", name, *value ? *value : "NULL" );*/
return TRUE;
}
- _mmcam_dbg_warn("Faild to get string... check it...Category[%d],Name[%s]", category, name);
+ _mmcam_dbg_err("Faild to get string... check it...Category[%d],Name[%s]", category, name);
return FALSE;
}
}
}
- _mmcam_dbg_warn("Failed to get default int... check it... Type[%d],Category[%d],Name[%s]", type, category, name);
+ _mmcam_dbg_err("Failed to get default int... check it... Type[%d],Category[%d],Name[%s]", type, category, name);
return FALSE;
}
for (i = 0 ; i < count_value ; i++) {
if (!strcmp(hcamcorder->conf_main_info_table[category][i].name, name)) {
*value = hcamcorder->conf_main_info_table[category][i].value_string;
- _mmcam_dbg_log("Get[%s] default string[%s]", name, *value);
+ /*_mmcam_dbg_log("Get[%s] default string[%s]", name, *value ? *value : "NULL");*/
return TRUE;
}
}
for (i = 0 ; i < count_value ; i++) {
if (!strcmp(hcamcorder->conf_ctrl_info_table[category][i].name, name)) {
*value = hcamcorder->conf_ctrl_info_table[category][i].value_string;
- _mmcam_dbg_log("Get[%s] default string[%s]", name, *value);
+ /*_mmcam_dbg_log("Get[%s] default string[%s]", name, *value ? *value : "NULL");*/
return TRUE;
}
}
info[i].conv_type);
*/
+ if (ret != MM_ERROR_NONE)
+ break;
+
if (info[i].type == CONFIGURE_TYPE_MAIN) {
conf_info = hcamcorder->conf_main;
/*_mmcam_dbg_log("MAIN configure [%s]", info[i].keyword);*/
if (!_mmcamcorder_conf_get_value_int(handle, conf_info, info[i].category, info[i].keyword, &ivalue)) {
ret = MM_ERROR_CAMCORDER_CREATE_CONFIGURE;
- break; /* skip to set */
+ break; /* skip to set */
}
ret = mm_attrs_set_int(MMF_CAMCORDER_ATTRS(hcamcorder), info[i].attr_idx, ivalue);
int idefault = 0;
type_int_array *tarray = NULL;
- if (!_mmcamcorder_conf_get_value_int_array(conf_info, info[i].category, info[i].keyword, &tarray)) {
- ret = MM_ERROR_CAMCORDER_CREATE_CONFIGURE;
- break; /* skip to set */
- }
+ if (!_mmcamcorder_conf_get_value_int_array(conf_info, info[i].category, info[i].keyword, &tarray))
+ break; /* skip to set, but not error */
if (tarray) {
idefault = tarray->default_value;
{
type_int_range *irange = NULL;
- if (!_mmcamcorder_conf_get_value_int_range(conf_info, info[i].category, info[i].keyword, &irange)) {
- ret = MM_ERROR_CAMCORDER_CREATE_CONFIGURE;
- break; /* skip to set */
- }
+ if (!_mmcamcorder_conf_get_value_int_range(conf_info, info[i].category, info[i].keyword, &irange))
+ break; /* skip to set, but not error */
if (irange) {
/* _mmcam_dbg_log("INT Range. m:%d, s:%d, min=%d, max=%d", info[i].main_key, info[i].sub_key1, irange->min, irange->max); */
if (!_mmcamcorder_conf_get_value_string(handle, conf_info, info[i].category, info[i].keyword, &cString)) {
ret = MM_ERROR_CAMCORDER_CREATE_CONFIGURE;
- break; /* skip to set */
+ break; /* skip to set */
}
/* _mmcam_dbg_log("String. m:%d, s:%d, cString=%s", info[i].main_key, info[i].sub_key1, cString); */
/*_mmcam_dbg_log("INT PAIR Array. type:%d, attr_idx:%d, attr_idx_pair:%d", info[i].type, info[i].attr_idx, info[i].attr_idx_pair);*/
- if (!_mmcamcorder_conf_get_value_int_pair_array(conf_info, info[i].category, info[i].keyword, &pair_array)) {
- ret = MM_ERROR_CAMCORDER_CREATE_CONFIGURE;
- break; /* skip to set */
- }
+ if (!_mmcamcorder_conf_get_value_int_pair_array(conf_info, info[i].category, info[i].keyword, &pair_array))
+ break; /* skip to set, but not error */
if (pair_array && pair_array->count > 0) {
/* "mmf_attrs_set_valid_type" initializes spec value in attribute, so allocated memory could be missed */