VirtualBox

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


Ignore:
Timestamp:
Dec 14, 2023 3:14:24 PM (17 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
160749
Message:

Audio/WAS: Attempt to fix crashes when invalidating the cached audio interfaces of the device entry configurations. This is needed when the audio interface becomes invalid on a host device switch. Extended logging a bit. bugref:10503

File:
1 edited

Legend:

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

    r100874 r102596  
    12351235    if (SUCCEEDED(hrc))
    12361236    {
     1237        LogRel2(("WasAPI: Checking for cached device '%ls' ...\n", pwszDevId));
     1238
    12371239        size_t cwcDevId = RTUtf16Len(pwszDevId);
    12381240
     
    12631265                              pDevEntry->wszDevId, pIDevice, pDevEntry->pIDevice));
    12641266
     1267                    LogRel(("WasAPI: Stale audio interface '%ls' detected! Invalidating audio interface ...\n",
     1268                            pDevEntry->wszDevId));
     1269
    12651270                    drvHostAudioWasCacheInvalidateDevEntryConfig(pThis, pDevEntry);
    12661271                    RTListNodeRemove(&pDevEntry->ListEntry);
     
    12771282        RTCritSectLeave(&pThis->CritSectCache);
    12781283
    1279         Log8Func(("Cache miss for device '%ls': %p\n", pDevEntry->wszDevId, pDevEntry));
     1284        if (pDevEntry)
     1285            Log8Func(("Cache miss for device '%ls': %p\n", pDevEntry->wszDevId, pDevEntry));
    12801286
    12811287        /*
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette