VirtualBox

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


Ignore:
Timestamp:
May 6, 2021 4:35:40 PM (4 years ago)
Author:
vboxsync
Message:

Audio/Dev*: Stream adding cleanup fixes. bugref:9890

Location:
trunk/src/VBox/Devices/Audio
Files:
3 edited

Legend:

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

    r88905 r88908  
    23642364                             pDrv->uLUN, StreamCfg.szName, rc));
    23652365            }
    2366         }
    2367 /** @todo r=bird: We are missing cleanup code here!   */
     2366            if (RT_FAILURE(rc))
     2367                AudioMixerSinkRemoveStream(pMixSink, pMixStrm);
     2368        }
     2369        if (RT_FAILURE(rc))
     2370            AudioMixerStreamDestroy(pMixStrm, pDevIns);
    23682371    }
    23692372
  • trunk/src/VBox/Devices/Audio/DevIchAc97.cpp

    r88906 r88908  
    19021902                                 pDrv->uLUN, pStreamCfg->szName, rc));
    19031903                }
    1904                 /** @todo r=bird: see below. */
    19051904                if (RT_FAILURE(rc))
    19061905                    AudioMixerSinkRemoveStream(pMixSink, pMixStrm);
    19071906            }
    1908             /** @todo r=bird: I've added this destroy stuff here, because if it looks as if
    1909              * you just drop the stream if the AudioMixerSinkAddStream fails for some
    1910              * reason.  This is definitely true if AudioMixerSinkSetRecordingSource fails
    1911              * above, because it leads to duplicate statistics when starting XP with ICH97
    1912              * and VRDP enabled.  Looks like the VRDP line-in fails with
    1913              * VERR_AUDIO_STREAM_NOT_READY when configured for 8000HZ, then it asserts in
    1914              * STAM when 48000Hz is configured right afterwards. */
    19151907            if (RT_FAILURE(rc))
    19161908                AudioMixerStreamDestroy(pMixStrm, pDevIns);
  • trunk/src/VBox/Devices/Audio/DevSB16.cpp

    r88906 r88908  
    20082008            rc = AudioMixerSinkAddStream(pMixSink, pMixStrm);
    20092009            LogFlowFunc(("LUN#%RU8: Added stream \"%s\" to sink, rc=%Rrc\n", pDrv->uLUN, pStreamCfg->szName, rc));
    2010 
    20112010            if (RT_SUCCESS(rc))
    2012             {
    20132011                pDrvStream->pMixStrm = pMixStrm;
    2014             }
    20152012            else
    20162013                AudioMixerStreamDestroy(pMixStrm, pDevIns);
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