VirtualBox

Changeset 90178 in vbox


Ignore:
Timestamp:
Jul 14, 2021 9:55:20 AM (4 years ago)
Author:
vboxsync
Message:

DevIchAc97: Don't assert on valid config in ichac97R3StreamSetUp as we do sometimes get here with Hz=0. bugref:9890

File:
1 edited

Legend:

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

    r90016 r90178  
    20112011     * Don't continue if the frequency is out of range (the rest of the
    20122012     * properties should be okay).
     2013     * Note! Don't assert on this as we may easily end up here with Hz=0.
    20132014     */
    20142015    char szTmp[PDMAUDIOSTRMCFGTOSTRING_MAX];
    2015     ASSERT_GUEST_MSG_RETURN(AudioHlpStreamCfgIsValid(&Cfg),
    2016                             ("Invalid stream #%u rate: %s\n", pStreamCC->u8SD,
    2017                              PDMAudioStrmCfgToString(&Cfg, szTmp, sizeof(szTmp)) ),
    2018                             VERR_OUT_OF_RANGE);
     2016    if (AudioHlpStreamCfgIsValid(&Cfg))
     2017    { }
     2018    else
     2019    {
     2020        LogFunc(("Invalid stream #%u rate: %s\n", pStreamCC->u8SD, PDMAudioStrmCfgToString(&Cfg, szTmp, sizeof(szTmp)) ));
     2021        return VERR_OUT_OF_RANGE;
     2022    }
    20192023
    20202024    /*
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