Android->Camera:Always Create media_profile.xml in power on process
This commit is contained in:
@ -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){
|
||||
|
||||
Reference in New Issue
Block a user