VirtualBox

Changeset 75318 in vbox


Ignore:
Timestamp:
Nov 8, 2018 8:38:26 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
126430
Message:

Audio/CoreAudio: Try to fix a hang when returning from host sleep when processing input buffers. Probably a regression from r124787.

File:
1 edited

Legend:

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

    r74036 r75318  
    13731373        RTCircBufAcquireWriteBlock(pCircBuf, cbLeft, (void **)&pvDst, &cbToWrite);
    13741374
    1375         if (cbToWrite)
    1376         {
    1377             /* Copy the data from our ring buffer to the core audio buffer. */
    1378             memcpy((UInt8 *)pvDst, pvSrc + cbWritten, cbToWrite);
    1379         }
     1375        if (!cbToWrite)
     1376            break;
     1377
     1378        /* Copy the data from our ring buffer to the core audio buffer. */
     1379        memcpy((UInt8 *)pvDst, pvSrc + cbWritten, cbToWrite);
    13801380
    13811381        /* Release the read buffer, so it could be used for new data. */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette