VirtualBox

Changeset 70295 in vbox for trunk/src


Ignore:
Timestamp:
Dec 21, 2017 5:29:02 PM (7 years ago)
Author:
vboxsync
Message:

Audio/HDA: Also check for the running state in hdaStreamTransferIsScheduled().

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

Legend:

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

    r70251 r70295  
    701701            PHDASTREAM pStream = &pThis->aStreams[i];
    702702
    703             if (!pStream->State.fRunning)
    704                 continue;
    705 
    706703            if (hdaStreamTransferIsScheduled(pStream))
    707704                tsExpireMin = RT_MIN(tsExpireMin, hdaStreamTransferGetNext(pStream));
  • trunk/src/VBox/Devices/Audio/HDAStream.cpp

    r70278 r70295  
    571571    AssertPtrReturn(pStream->pHDAState, false);
    572572
    573     const bool fScheduled = pStream->State.tsTransferNext > TMTimerGet(pStream->pHDAState->pTimer);
     573    const bool fScheduled =    pStream->State.fRunning
     574                            && pStream->State.tsTransferNext > TMTimerGet(pStream->pHDAState->pTimer);
    574575
    575576    Log3Func(("[SD%RU8] %RU64 -> %RTbool\n", pStream->u8SD, pStream->State.tsTransferNext, fScheduled));
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