VirtualBox

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


Ignore:
Timestamp:
Nov 8, 2018 8:12:06 AM (6 years ago)
Author:
vboxsync
Message:

Audio/HDA: Check if a stream has a valid mixer sink attached in hdaR3Timer().

File:
1 edited

Legend:

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

    r75120 r75317  
    14001400
    14011401                /* Remove the old stream from the device setup. */
    1402                 hdaR3RemoveStream(pThis, &pStream->State.Cfg);
     1402                rc2 = hdaR3RemoveStream(pThis, &pStream->State.Cfg);
     1403                AssertRC(rc2);
    14031404
    14041405                /* Add the stream to the device setup. */
     
    29092910    hdaR3StreamUpdate(pStream, true /* fInTimer */);
    29102911
    2911     /* Flag indicating whether to kick the timer again for a
    2912      * new data processing round. */
    2913     const bool fSinkActive = AudioMixerSinkIsActive(pStream->pMixSink->pMixSink);
     2912    /* Flag indicating whether to kick the timer again for a new data processing round. */
     2913    bool fSinkActive = false;
     2914    if (pStream->pMixSink)
     2915        fSinkActive = AudioMixerSinkIsActive(pStream->pMixSink->pMixSink);
     2916
    29142917    if (fSinkActive)
    29152918    {
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