diff --git a/pasdk/test_dsp/framework/audioStreamOutProc.c b/pasdk/test_dsp/framework/audioStreamOutProc.c
index a4e9327dfd12af59a5d1c02298a944c9a6fcce64..34e9d73e006461ea60aa396798d1b54a7f93d347 100644 (file)
if (status == ASOP_SOK)
{
// Update Output buffer configuration
- errno = asopUpdateOutBufConfig(&pAstCfg->xOut[zO], &pAsotCfg->pIoOut[zO]);
- if (errno)
+ asopUpdateOutBufConfig(&pAstCfg->xOut[zO], &pAsotCfg->pIoOut[zO]);
+
+ // Execute encode
+ errno = asopDecOutProcEncode(pP, pQ, pAsotCfg, frame);
+ if (errno < 0)
{
status = errno;
}
- else
- {
- // Execute encode
- errno = asopDecOutProcEncode(pP, pQ, pAsotCfg, frame);
- if (errno < 0)
- {
- status = errno;
- }
- else
- {
- // Mark Output buffers write complete
- errno = asopMarkOutBuffsWriteComplete(&pAstCfg->xOut[zO], &pAsotCfg->pIoOut[zO]);
- if (errno)
- {
- status = errno;
- }
- }
- }
+
+ // Mark Output buffers write complete
+ asopMarkOutBuffsWriteComplete(&pAstCfg->xOut[zO], &pAsotCfg->pIoOut[zO]);
}
if (status == ASOP_SOK)