mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
ExternalCameraDeviceSession: Fix request initialization
This code was exiting because of unsupported RequestTemplate::* enum values that are now just ignored. Change-Id: I37f79cbbfe99664ec173458721d71947f0d002ff
This commit is contained in:
@@ -1820,8 +1820,8 @@ status_t ExternalCameraDeviceSession::initDefaultRequests() {
|
||||
intent = ANDROID_CONTROL_CAPTURE_INTENT_VIDEO_SNAPSHOT;
|
||||
break;
|
||||
default:
|
||||
ALOGE("%s: unknown template type %d", __FUNCTION__, type);
|
||||
return BAD_VALUE;
|
||||
ALOGV("%s: unsupported RequestTemplate type %d", __FUNCTION__, type);
|
||||
continue;
|
||||
}
|
||||
UPDATE(mdCopy, ANDROID_CONTROL_CAPTURE_INTENT, &intent, 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user