VirtualBox

Changeset 55025 in vbox for trunk/src


Ignore:
Timestamp:
Mar 31, 2015 10:50:05 AM (10 years ago)
Author:
vboxsync
Message:

PDM/DevSB16.cpp: Bail out reading DMA data when there's no consumer left.

File:
1 edited

Legend:

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

    r55021 r55025  
    16871687#else
    16881688        int rc = PDMDevHlpDMAReadMemory(pThis->pDevIns, nchan, tmpbuf, dma_pos, cbToRead, &cbRead);
    1689         AssertMsgRC (rc, ("DMAReadMemory -> %Rrc\n", rc));
     1689        AssertMsgRC(rc, ("DMAReadMemory -> %Rrc\n", rc));
    16901690#endif
    16911691
     
    17111711#endif /* VBOX_WITH_PDM_AUDIO_DRIVER */
    17121712
     1713        Assert(cbToWrite >= cbWrittenMin);
    17131714        cbToWrite      -= cbWrittenMin;
    17141715        dma_pos         = (dma_pos + cbWrittenMin) % dma_len;
    17151716        cbWrittenTotal += cbWrittenMin;
    17161717
    1717         if (!cbRead)
     1718        if (!cbRead || !cbWrittenMin)
    17181719            break;
    17191720    }
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