VirtualBox

Changeset 70671 in vbox


Ignore:
Timestamp:
Jan 22, 2018 9:15:10 AM (7 years ago)
Author:
vboxsync
Message:

Audio/SB16: A couple more checks needed for the dynamic attaching / detaching stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DevSB16.cpp

    r70642 r70671  
    12731273    RTListForEach(&pThis->lstDrv, pDrv, SB16DRIVER, Node)
    12741274    {
     1275        if (!pDrv->Out.pStream)
     1276            continue;
     1277
    12751278        int rc2 = pDrv->pConnector->pfnStreamSetVolume(pDrv->pConnector, pDrv->Out.pStream, &VolCombined);
    12761279        AssertRC(rc2);
     
    18101813        RTListForEach(&pThis->lstDrv, pDrv, SB16DRIVER, Node)
    18111814        {
     1815            if (!pDrv->Out.pStream)
     1816                continue;
     1817
    18121818            uint32_t cbWrittenToStream = 0;
    18131819            rc2 = pDrv->pConnector->pfnStreamWrite(pDrv->pConnector, pDrv->Out.pStream, tmpbuf, cbRead, &cbWrittenToStream);
     
    18611867    RTListForEach(&pThis->lstDrv, pDrv, SB16DRIVER, Node)
    18621868    {
     1869        if (!pDrv->Out.pStream)
     1870            continue;
     1871
    18631872        uint32_t cbOut = pDrv->pConnector->pfnStreamGetWritable(pDrv->pConnector, pDrv->Out.pStream);
    18641873
     
    26442653
    26452654        /** @todo No input streams available for SB16 yet. */
     2655
     2656        if (!pDrv->Out.pStream)
     2657            continue;
     2658
    26462659        bool fValidOut = pCon->pfnStreamGetStatus(pCon, pDrv->Out.pStream) & PDMAUDIOSTREAMSTS_FLAG_INITIALIZED;
    26472660        if (!fValidOut)
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