VirtualBox

Changeset 94829 in vbox


Ignore:
Timestamp:
May 5, 2022 6:21:36 AM (3 years ago)
Author:
vboxsync
Message:

Audio/SB16: Try fixing SSM load assertions when stored PCM properties are 0 (or not valid) [nits].

File:
1 edited

Legend:

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

    r94820 r94829  
    24472447static int sb16Load(PPDMDEVINS pDevIns, PSSMHANDLE pSSM, PSB16STATE pThis)
    24482448{
    2449     unsigned const idxStream = SB16_IDX_OUT; /* The one and only stream we have right now. */
    2450 
    24512449    PCPDMDEVHLPR3 pHlp  = pDevIns->pHlpR3;
    2452     PSB16STREAM pStream = &pThis->aStreams[idxStream]; /* The saved state only contains the one-and-only output stream. */
     2450    PSB16STREAM pStream = &pThis->aStreams[SB16_IDX_OUT]; /* The saved state only contains the one-and-only output stream. */
    24532451    int rc;
    24542452
     
    25262524        /* Sanity: If stream is going be enabled, PCM props must be valid. Otherwise the saved state is borked somehow. */
    25272525        AssertMsgReturn(AudioHlpPcmPropsAreValid(&pStream->Cfg.Props),
    2528                         ("PCM properties for stream #%RU8 are invalid\n", idxStream), VERR_INVALID_PARAMETER);
     2526                        ("PCM properties for stream #%RU8 are invalid\n", pStream->uIdx), VERR_SSM_DATA_UNIT_FORMAT_CHANGED);
    25292527        sb16StreamControl(pDevIns, pThis, pStream, true /* fRun */);
    25302528    }
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