VirtualBox

Changeset 91940 in vbox for trunk/src


Ignore:
Timestamp:
Oct 21, 2021 12:51:46 PM (3 years ago)
Author:
vboxsync
Message:

Audio/Validation Kit: Matched the parameters of audioTestStreamDestroy() to audioTestStreamInit().​ bugref:10008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/utils/audio/vkatCommon.cpp

    r91913 r91940  
    8181*********************************************************************************************************************************/
    8282static int audioTestStreamInit(PAUDIOTESTDRVSTACK pDrvStack, PAUDIOTESTSTREAM pStream, PDMAUDIODIR enmDir, PAUDIOTESTIOOPTS pPlayOpt);
    83 static int audioTestStreamDestroy(PAUDIOTESTENV pTstEnv, PAUDIOTESTSTREAM pStream);
     83static int audioTestStreamDestroy(PAUDIOTESTDRVSTACK pDrvStack, PAUDIOTESTSTREAM pStream);
    8484
    8585
     
    380380 *
    381381 * @returns VBox status code.
    382  * @param   pTstEnv             Test environment the stream to destroy contains.
     382 * @param   pDrvStack           Driver stack the stream belongs to.
    383383 * @param   pStream             Audio stream to destroy.
    384384 */
    385 static int audioTestStreamDestroy(PAUDIOTESTENV pTstEnv, PAUDIOTESTSTREAM pStream)
     385static int audioTestStreamDestroy(PAUDIOTESTDRVSTACK pDrvStack, PAUDIOTESTSTREAM pStream)
    386386{
    387387    AssertPtrReturn(pStream, VERR_INVALID_POINTER);
     
    391391        /** @todo Anything else to do here, e.g. test if there are left over samples or some such? */
    392392
    393         audioTestDriverStackStreamDestroy(pTstEnv->pDrvStack, pStream->pStream);
     393        audioTestDriverStackStreamDestroy(pDrvStack, pStream->pStream);
    394394        pStream->pStream  = NULL;
    395395        pStream->pBackend = NULL;
     
    965965        }
    966966
    967         int rc2 = audioTestStreamDestroy(pTstEnv, pTstStream);
     967        int rc2 = audioTestStreamDestroy(pTstEnv->pDrvStack, pTstStream);
    968968        if (RT_SUCCESS(rc))
    969969            rc = rc2;
     
    10131013        }
    10141014
    1015         int rc2 = audioTestStreamDestroy(pTstEnv, pTstStream);
     1015        int rc2 = audioTestStreamDestroy(pTstEnv->pDrvStack, pTstStream);
    10161016        if (RT_SUCCESS(rc))
    10171017            rc = rc2;
     
    14621462    for (unsigned i = 0; i < RT_ELEMENTS(pTstEnv->aStreams); i++)
    14631463    {
    1464         int rc2 = audioTestStreamDestroy(pTstEnv, &pTstEnv->aStreams[i]);
     1464        int rc2 = audioTestStreamDestroy(pTstEnv->pDrvStack, &pTstEnv->aStreams[i]);
    14651465        if (RT_FAILURE(rc2))
    14661466            RTTestFailed(g_hTest, "Stream destruction for stream #%u failed with %Rrc\n", i, rc2);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette