VirtualBox

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


Ignore:
Timestamp:
Feb 11, 2018 9:43:05 PM (7 years ago)
Author:
vboxsync
Message:

Audio/DrvHostDSound.cpp: Check for valid circular buffer when flushing in directSoundPlayStop() + directSoundCaptureStop().

File:
1 edited

Legend:

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

    r70957 r70967  
    892892    if (SUCCEEDED(hr))
    893893    {
    894         if (fFlush)
     894        if (   fFlush
     895            && pStreamDS->pCircBuf)
     896        {
    895897            RTCircBufReset(pStreamDS->pCircBuf);
     898        }
    896899    }
    897900
     
    12661269    if (SUCCEEDED(hr))
    12671270    {
    1268         if (fFlush)
     1271        if (   fFlush
     1272            && pStreamDS->pCircBuf)
     1273        {
    12691274            RTCircBufReset(pStreamDS->pCircBuf);
     1275        }
    12701276    }
    12711277
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