VirtualBox

Changeset 74033 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 3, 2018 9:43:19 AM (6 years ago)
Author:
vboxsync
Message:

Audio/DrvAudio: Also check for free input streams on stream creation and bail out if it's not the case in drvAudioStreamCreate().

File:
1 edited

Legend:

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

    r74010 r74033  
    24012401
    24022402        /* Note: cbHstStrm will contain the size of the data the backend needs to operate on. */
    2403         size_t cbHstStrm = 0;
     2403        size_t cbHstStrm;
    24042404        if (pCfgHost->enmDir == PDMAUDIODIR_IN)
    24052405        {
    24062406            if (!pThis->In.cStreamsFree)
    2407                 LogFunc(("Warning: No more input streams free to use\n"));
     2407            {
     2408                LogFlowFunc(("Maximum number of host input streams reached\n"));
     2409                RC_BREAK(VERR_AUDIO_NO_FREE_INPUT_STREAMS);
     2410            }
    24082411
    24092412            cbHstStrm = pThis->BackendCfg.cbStreamIn;
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