VirtualBox

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


Ignore:
Timestamp:
Aug 14, 2017 1:10:01 PM (7 years ago)
Author:
vboxsync
Message:

Audio/DevIchAc97.cpp: Lock the stream while being in ichac97StreamUpdate().

File:
1 edited

Legend:

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

    r68389 r68412  
    12191219static void ichac97StreamUpdate(PAC97STATE pThis, PAC97STREAM pStream, bool fInTimer)
    12201220{
     1221    ichac97StreamLock(pStream);
     1222
    12211223    PAUDMIXSINK pSink = ichac97IndexToSink(pThis, pStream->u8SD);
    12221224    AssertPtr(pSink);
    12231225
    12241226    if (!AudioMixerSinkIsActive(pSink)) /* No sink available? Bail out. */
     1227    {
     1228        ichac97StreamUnlock(pStream);
    12251229        return;
     1230    }
    12261231
    12271232    int rc2;
     
    13351340#endif
    13361341    }
     1342
     1343    ichac97StreamUnlock(pStream);
    13371344}
    13381345
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