VirtualBox

Changeset 65017 in vbox


Ignore:
Timestamp:
Dec 28, 2016 11:20:54 AM (8 years ago)
Author:
vboxsync
Message:

Audio/AudioMixer.cpp: Make sure to clear any other former flags again by assigning AUDMIXSINK_STS_RUNNING directly in AudioMixerSinkCtl().

File:
1 edited

Legend:

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

    r64969 r65017  
    723723    if (enmSinkCmd == AUDMIXSINKCMD_ENABLE)
    724724    {
    725         pSink->fStatus |= AUDMIXSINK_STS_RUNNING;
     725        /* Make sure to clear any other former flags again by assigning AUDMIXSINK_STS_RUNNING directly. */
     726        pSink->fStatus = AUDMIXSINK_STS_RUNNING;
    726727    }
    727728    else if (enmSinkCmd == AUDMIXSINKCMD_DISABLE)
     
    737738    RTStrFree(pszStatus);
    738739#endif
    739 
    740     /* Not running anymore? Reset. */
    741     if (!(pSink->fStatus & AUDMIXSINK_STS_RUNNING))
    742         audioMixerSinkReset(pSink);
    743740
    744741    int rc2 = RTCritSectLeave(&pSink->CritSect);
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