PASDK-516:Slight update to write complete handling
[processor-sdk/performance-audio-sr.git] / pasdk / test_dsp / framework / audioStreamOutProc.c
index a4e9327dfd12af59a5d1c02298a944c9a6fcce64..34e9d73e006461ea60aa396798d1b54a7f93d347 100644 (file)
@@ -1322,29 +1322,17 @@ static Int PAF_ASOT_procDecOut(
     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)