VirtualBox

Changeset 54811 in vbox


Ignore:
Timestamp:
Mar 17, 2015 1:11:38 PM (10 years ago)
Author:
vboxsync
Message:

Audio/Alsa: Fix endless loop (hopefully in the correct way)

File:
1 edited

Legend:

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

    r54491 r54811  
    836836    snd_pcm_sframes_t cRead;
    837837
    838     while (cbToRead)
     838    while (   cbToRead
     839           && RT_SUCCESS(rc))
    839840    {
    840841        cToRead = RT_MIN(AUDIOMIXBUF_B2S(&pHstStrmIn->MixBuf, cbToRead),
     
    854855
    855856                case -EAGAIN:
     857                    /*
     858                     * Don't set error here because EAGAIN means there are no ffurther rames
     859                     * available at the moment, try later. As we might have read some frames
     860                     * already the need to be processed.
     861                     */
     862                    cbToRead = 0;
    856863                    break;
    857864
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