未验证 提交 d10c5b3a 编写于 作者: O openharmony_ci 提交者: Gitee

!3208 修改延时数值太大导致的错误状态下调用flush接口

Merge pull request !3208 from ling990/ling990
......@@ -239,7 +239,7 @@ describe('VideoDecoderReliCallbackTest', function () {
console.info(`case start callback`);
printError(err, expectFail);
if (mySteps[0] == DECODE_STEP.FLUSH) {
timeDelay = 500;
timeDelay = 50;
}
setTimeout(() => {
toNextStep(mySteps, done);
......
......@@ -243,7 +243,7 @@ describe('VideoDecoderReliPromiseTest', function () {
videoDecodeProcessor.start().then(() => {
console.info(`case start success`);
if (mySteps[0] == DECODE_STEP.FLUSH) {
timeDelay = 500;
timeDelay = 50;
}
setTimeout(() => {
toNextStep(mySteps, done);
......
......@@ -239,7 +239,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () {
console.info(`case start callback`);
printError(err, expectFail);
if (mySteps[0] == DECODE_STEP.FLUSH) {
timeDelay = 500;
timeDelay = 50;
}
setTimeout(() => {
toNextStep(mySteps, done);
......
......@@ -244,7 +244,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () {
videoDecodeProcessor.start().then(() => {
console.info(`case start success`);
if (mySteps[0] == DECODE_STEP.FLUSH) {
timeDelay = 500;
timeDelay = 50;
}
setTimeout(() => {
toNextStep(mySteps, done);
......
......@@ -206,6 +206,7 @@ describe('videoSoftwareEncoderFuncPromise', function () {
}
} else {
console.info('not last frame, continue');
writeFile(outputObject.data, outputObject.length);
videoEncodeProcessor.freeOutputBuffer(outputObject).then(() => {
console.info('release output success');
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册