VirtualBox

Changeset 63717 in vbox


Ignore:
Timestamp:
Sep 5, 2016 3:13:48 PM (8 years ago)
Author:
vboxsync
Message:

Audio/DrvAudio: Only try to re-initialize once, and after that the backend has to tell us when to try again.

File:
1 edited

Legend:

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

    r63715 r63717  
    10241024        if (pHstStream->fStatus & PDMAUDIOSTRMSTS_FLAG_PENDING_REINIT)
    10251025        {
     1026            /* Remove the pending re-init flag in any case, regardless whether the actual re-initialization succeeded
     1027             * or not. If it failed, the backend needs to notify us again to try again at some later point in time. */
     1028            pHstStream->fStatus &= ~PDMAUDIOSTRMSTS_FLAG_PENDING_REINIT;
     1029
    10261030            rc = drvAudioStreamReInitInternal(pThis, pStream);
    10271031            if (RT_FAILURE(rc))
    10281032                break;
    1029 
    1030             /* On success, remove pending re-init flag. */
    1031             pHstStream->fStatus &= ~PDMAUDIOSTRMSTS_FLAG_PENDING_REINIT;
    10321033        }
    10331034
     
    11341135        if (pHstStream->fStatus & PDMAUDIOSTRMSTS_FLAG_PENDING_REINIT)
    11351136        {
     1137            /* Remove the pending re-init flag in any case, regardless whether the actual re-initialization succeeded
     1138             * or not. If it failed, the backend needs to notify us again to try again at some later point in time. */
     1139            pHstStream->fStatus &= ~PDMAUDIOSTRMSTS_FLAG_PENDING_REINIT;
     1140
    11361141            rc = drvAudioStreamReInitInternal(pThis, pStream);
    11371142            if (RT_FAILURE(rc))
    11381143                break;
    1139 
    1140             /* On success, remove pending re-init flag. */
    1141             pHstStream->fStatus &= ~PDMAUDIOSTRMSTS_FLAG_PENDING_REINIT;
    11421144        }
    11431145
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