VirtualBox

Changeset 54534 in vbox


Ignore:
Timestamp:
Feb 26, 2015 3:34:14 PM (10 years ago)
Author:
vboxsync
Message:

PDM/Audio: Fix for Core Audio backend.

File:
1 edited

Legend:

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

    r54519 r54534  
    13991399
    14001400        /* Break if nothing is used anymore. */
    1401         if (!cbToRead == 0)
     1401        if (!cbToRead)
    14021402            break;
    14031403
     
    14101410        /* Move offset. */
    14111411        cbRead += cbToRead;
     1412        Assert(pBufData->mBuffers[0].mDataByteSize >= cbRead);
     1413
     1414        Assert(cbDataAvail >= cbRead);
     1415        cbDataAvail -= cbRead;
    14121416    }
    14131417
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