VirtualBox

Changeset 87856 in vbox


Ignore:
Timestamp:
Feb 24, 2021 8:35:35 AM (4 years ago)
Author:
vboxsync
Message:

Audio/Mixer: Follow-up fix for r142918; first destroy the sink, then de-associate it from the mixer.

File:
1 edited

Legend:

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

    r87852 r87856  
    323323        PAUDMIXSINK pSinkToRemove = pSink;
    324324
     325        audioMixerSinkDestroyInternal(pSinkToRemove);
    325326        audioMixerRemoveSinkInternal(pMixer, pSinkToRemove);
    326327
    327         audioMixerSinkDestroyInternal(pSinkToRemove);
    328 
    329328        RTMemFree(pSinkToRemove);
    330329    }
    331330
    332     pMixer->cSinks = 0;
     331    Assert(pMixer->cSinks == 0);
    333332
    334333    if (pMixer->pszName)
     
    917916    }
    918917
    919     if (pSink->pParent->fFlags & AUDMIXER_FLAGS_DEBUG)
     918    if (   pSink->pParent
     919        && pSink->pParent->fFlags & AUDMIXER_FLAGS_DEBUG)
    920920    {
    921921        DrvAudioHlpFileDestroy(pSink->Dbg.pFile);
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