VirtualBox

Changeset 62068 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jul 6, 2016 3:33:35 PM (9 years ago)
Author:
vboxsync
Message:

Audio/DrvAudio.cpp: Only go into pause state if the stream was enabled before.

File:
1 edited

Legend:

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

    r62054 r62068  
    363363    AssertPtrReturn(pStream, VERR_INVALID_POINTER);
    364364
    365     LogFlowFunc(("[%s] enmStreamCmd=%RU32\n", pStream->szName, enmStreamCmd));
    366 
    367365    PPDMAUDIOSTREAM pHstStream = drvAudioGetHostStream(pStream);
    368366    AssertPtr(pHstStream);
     367
     368    LogFlowFunc(("[%s] enmStreamCmd=%RU32, fStatus=0x%x\n", pHstStream->szName, enmStreamCmd, pHstStream->fStatus));
    369369
    370370    AssertPtr(pThis->pHostDrvAudio);
     
    404404            case PDMAUDIOSTREAMCMD_PAUSE:
    405405            {
     406                /* Only pause if the stream is enabled. */
     407                if (!(pHstStream->fStatus & PDMAUDIOSTRMSTS_FLAG_ENABLED))
     408                    break;
     409
    406410                if (!(pHstStream->fStatus & PDMAUDIOSTRMSTS_FLAG_PAUSED))
    407411                {
     
    415419            case PDMAUDIOSTREAMCMD_RESUME:
    416420            {
     421                /* Only need to resume if the stream is enabled. */
     422                if (!(pHstStream->fStatus & PDMAUDIOSTRMSTS_FLAG_ENABLED))
     423                    break;
     424
    417425                if (pHstStream->fStatus & PDMAUDIOSTRMSTS_FLAG_PAUSED)
    418426                {
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