VirtualBox

Changeset 75422 in vbox for trunk/src/VBox/Devices/Audio


Ignore:
Timestamp:
Nov 13, 2018 1:01:26 PM (6 years ago)
Author:
vboxsync
Message:

Audio/HDA: Don't debug assert when trying to remove a stream which is not initialized yet.

File:
1 edited

Legend:

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

    r75317 r75422  
    19791979            switch (pCfg->DestSource.Source)
    19801980            {
    1981                 case PDMAUDIORECSOURCE_LINE: enmMixerCtl = PDMAUDIOMIXERCTL_LINE_IN; break;
     1981                case PDMAUDIORECSOURCE_UNKNOWN: break;
     1982                case PDMAUDIORECSOURCE_LINE:    enmMixerCtl = PDMAUDIOMIXERCTL_LINE_IN; break;
    19821983# ifdef VBOX_WITH_AUDIO_HDA_MIC_IN
    1983                 case PDMAUDIORECSOURCE_MIC:  enmMixerCtl = PDMAUDIOMIXERCTL_MIC_IN;  break;
     1984                case PDMAUDIORECSOURCE_MIC:     enmMixerCtl = PDMAUDIOMIXERCTL_MIC_IN;  break;
    19841985# endif
    19851986                default:
     
    19971998            switch (pCfg->DestSource.Dest)
    19981999            {
     2000                case PDMAUDIOPLAYBACKDEST_UNKNOWN:    break;
    19992001                case PDMAUDIOPLAYBACKDEST_FRONT:      enmMixerCtl = PDMAUDIOMIXERCTL_FRONT;      break;
    20002002# ifdef VBOX_WITH_AUDIO_HDA_51_SURROUND
     
    20142016    }
    20152017
    2016     if (RT_SUCCESS(rc))
     2018    if (   RT_SUCCESS(rc)
     2019        && enmMixerCtl != PDMAUDIOMIXERCTL_UNKNOWN)
     2020    {
    20172021        rc = hdaCodecRemoveStream(pThis->pCodec, enmMixerCtl);
     2022    }
    20182023
    20192024    LogFlowFuncLeaveRC(rc);
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