VirtualBox

Changeset 88156 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 17, 2021 2:29:47 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
143305
Message:

DrvHostPulseAudio.cpp: Fixed bogus pCfgAcq->Backend.cFramesBufferSize assignment in paCreateStreamIn (probably harmless). bugref:9890

File:
1 edited

Legend:

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

    r88028 r88156  
    439439}
    440440
    441 
    442441#ifdef DEBUG
     442
    443443static void paStreamCbReqWrite(pa_stream *pStream, size_t cbLen, void *pvContext)
    444444{
     
    506506    Log2Func(("Warning: Hit overflow\n"));
    507507}
     508
    508509#endif /* DEBUG */
    509 
    510510
    511511static void paStreamCbSuccess(pa_stream *pStream, int fSuccess, void *pvUser)
     
    876876    pCfgAcq->Props.cChannels   = pStreamPA->SampleSpec.channels;
    877877
    878     pCfgAcq->Backend.cFramesPeriod     = PDMAUDIOSTREAMCFG_B2F(pCfgAcq, pStreamPA->BufAttr.fragsize);
    879     pCfgAcq->Backend.cFramesBufferSize = pCfgAcq->Backend.cFramesBufferSize;
    880     pCfgAcq->Backend.cFramesPreBuffering     = pCfgAcq->Backend.cFramesPeriod;
     878    pCfgAcq->Backend.cFramesPeriod       = PDMAUDIOSTREAMCFG_B2F(pCfgAcq, pStreamPA->BufAttr.fragsize);
     879    pCfgAcq->Backend.cFramesBufferSize   = pCfgAcq->Backend.cFramesPeriod;
     880    pCfgAcq->Backend.cFramesPreBuffering = pCfgAcq->Backend.cFramesPeriod;
    881881
    882882    LogFlowFuncLeaveRC(rc);
     
    891891                                                           void *pvBuf, uint32_t uBufSize, uint32_t *puRead)
    892892{
    893     RT_NOREF(pvBuf, uBufSize);
    894893    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
    895894    AssertPtrReturn(pStream,    VERR_INVALID_POINTER);
    896895    AssertPtrReturn(pvBuf,      VERR_INVALID_POINTER);
    897     AssertReturn(uBufSize,         VERR_INVALID_PARAMETER);
     896    AssertReturn(uBufSize,      VERR_INVALID_PARAMETER);
    898897    /* pcbRead is optional. */
    899898
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