VirtualBox

Changeset 103420 in vbox


Ignore:
Timestamp:
Feb 19, 2024 9:08:34 AM (9 months ago)
Author:
vboxsync
Message:

Main/DrvAudioRec: Don't evaluate RTCircBufFree() twice. bugref:3409

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/DrvAudioRec.cpp

    r99739 r103420  
    504504    PRTCIRCBUF pCircBuf    = pStreamAV->pCircBuf;
    505505    AssertPtr(pCircBuf);
    506 
    507     uint32_t cbToWrite = RT_MIN(cbBuf, (uint32_t)RTCircBufFree(pCircBuf));
     506    uint32_t const cbFree    = (uint32_t)RTCircBufFree(pCircBuf);
     507    uint32_t       cbToWrite = RT_MIN(cbBuf, cbFree);
    508508    AssertReturn(cbToWrite, VERR_BUFFER_OVERFLOW);
    509509
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