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:
Yuriy Romanenko
2018-01-26 16:05:54 -08:00
parent e210c3cddf
commit 083de0c3c6

View File

@@ -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);