提交 4631b50a 编写于 作者: Y yygxr

fix xts case error for musl

Signed-off-by: Nyygxr <wuhao30@huawei.com>
上级 8c45263d
......@@ -275,6 +275,7 @@ export default function CameraInputTest(surfaceId) {
cameraOutputCap = result;
}).catch((err) => {
console.info('getSupportedOutputCapability failed, err = ' + err.message);
mPreviewOutput = null;
});
if (!isEmpty(cameraOutputCap)) {
......
......@@ -405,6 +405,8 @@ export default function cameraSessionTest(surfaceId: any) {
cameraOutputCap = result;
}).catch((err) => {
console.info('getSupportedOutputCapability failed, err = ' + err.message);
mPreviewOutput = null;
mPhotoOutput = null;
});
if (!isEmpty(cameraOutputCap)) {
......
......@@ -465,6 +465,8 @@ export default function cameraSessionExposureTest(surfaceId: any) {
cameraOutputCap = result;
}).catch((err) => {
console.info('getSupportedOutputCapability failed, err = ' + err.message);
mPreviewOutput = null;
mPhotoOutput = null;
});
if (!isEmpty(cameraOutputCap)) {
......
......@@ -416,6 +416,8 @@ export default function cameraSessionFlashTest(surfaceId: any) {
cameraOutputCap = result;
}).catch((err) => {
console.info('getSupportedOutputCapability failed, err = ' + err.message);
mPreviewOutput = null;
mPhotoOutput = null;
});
if (!isEmpty(cameraOutputCap)) {
......
......@@ -461,6 +461,8 @@ export default function cameraSessionFocusTest(surfaceId: any) {
cameraOutputCap = result;
}).catch((err) => {
console.info('getSupportedOutputCapability failed, err = ' + err.message);
mPreviewOutput = null;
mPhotoOutput = null;
});
if (!isEmpty(cameraOutputCap)) {
......
......@@ -414,6 +414,8 @@ export default function cameraSessionVideoStabilizationTest(surfaceId: any) {
cameraOutputCap = result;
}).catch((err) => {
console.info('getSupportedOutputCapability failed, err = ' + err.message);
mPreviewOutput = null;
mPhotoOutput = null;
});
if (!isEmpty(cameraOutputCap)) {
......
......@@ -418,6 +418,8 @@ export default function cameraSessionZoomRatioTest(surfaceId: any) {
cameraOutputCap = result;
}).catch((err) => {
console.info('getSupportedOutputCapability failed, err = ' + err.message);
mPreviewOutput = null;
mPhotoOutput = null;
});
if (!isEmpty(cameraOutputCap)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册