Android->Camera:Always Create media_profile.xml in power on process

This commit is contained in:
zouxf
2016-01-15 17:18:11 +08:00
committed by cjp
parent 35c514e877
commit 41acbfdea5

View File

@ -2043,8 +2043,8 @@ int camera_board_profiles::ProduceNewXml(camera_board_profiles* profiles)
}
int fileexit = access(RK_DST_MEDIA_PROFILES_XML_PATH, 0);
ALOGD("judge the media profile xml fileexit = %d\n", fileexit);
//if((int)nCamNum>=1){
ALOGD("judge the media profile xml fileexit = %d\n", fileexit);
if((int)nCamNum>=1){
//if((int)nCamNum>=1 && fileexit == -1){
LOG1("enter produce new xml\n");
//new xml file name
@ -2098,7 +2098,8 @@ int camera_board_profiles::LoadSensor(camera_board_profiles* profiles)
goto err_end;
}
//read sensor name
//read sensor name
count = ReadDevNameFromXML(fp, profiles->mXmlDevInfo);
profiles->xml_device_count = count;
//if(count<1){
if(count<CAM_MAX_SUPPORT){