Add the default camera id to mCameraIds for emulator and those devices without media_profiles.xml configuration file.

bug - 4109530

Change-Id: Ib83be7a7f767a4b20ac338734ada1581e7a4c5bf
This commit is contained in:
James Dong
2011-03-16 14:09:50 -07:00
parent 6bb2020e6e
commit 6ec0ca9e8e

View File

@@ -721,6 +721,11 @@ MediaProfiles::createDefaultCamcorderProfiles(MediaProfiles *profiles)
createDefaultCamcorderTimeLapseHighProfiles(&highTimeLapseProfile, &highSpecificTimeLapseProfile);
profiles->mCamcorderProfiles.add(highTimeLapseProfile);
profiles->mCamcorderProfiles.add(highSpecificTimeLapseProfile);
// For emulator and other legacy devices which does not have a
// media_profiles.xml file, We assume that the default camera id
// is 0 and that is the only camera available.
profiles->mCameraIds.push(0);
}
/*static*/ void