VirtualBox

Changeset 98453 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 2, 2023 7:19:49 PM (23 months ago)
Author:
vboxsync
Message:

Audio: When waiting for draining fails, don't return early but release the critsect first. ​bugref:10354

File:
1 edited

Legend:

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

    r98406 r98453  
    632632                    {
    633633                        rc = audioMixerSinkWaitForDrainedLocked(pSink, msTimeout);
    634                         AssertRCReturn(rc, rc);
    635634#ifdef LOG_ENABLED
    636635                        Log3Func(("Waiting for update jobs done (rc=%Rrc, took %RU64ms)\n", rc, RTTimeMilliTS() - msStart));
     
    674673    LogRel2(("Audio Mixer: Started draining sink '%s': %s\n", pSink->pszName, dbgAudioMixerSinkStatusToStr(pSink->fStatus, szStatus)));
    675674    RTCritSectLeave(&pSink->CritSect);
    676     return VINF_SUCCESS;
     675    return rc;
    677676}
    678677
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