VirtualBox

Changeset 70635 in vbox


Ignore:
Timestamp:
Jan 18, 2018 4:57:59 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
120359
Message:

Audio/DrvAudio: Fixed potential deadlock situation in drvAudioStateHandler() if backend (lower driver) is not initialized (yet).

File:
1 edited

Legend:

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

    r70630 r70635  
    88
    99/*
    10  * Copyright (C) 2006-2017 Oracle Corporation
     10 * Copyright (C) 2006-2018 Oracle Corporation
    1111 *
    1212 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    21762176    AssertRC(rc2);
    21772177
    2178     if (!pThis->pHostDrvAudio)
    2179         return;
    2180 
    2181     PPDMAUDIOSTREAM pHstStream;
    2182     RTListForEach(&pThis->lstHstStreams, pHstStream, PDMAUDIOSTREAM, Node)
    2183         drvAudioStreamControlInternalBackend(pThis, pHstStream, enmCmd);
     2178    if (pThis->pHostDrvAudio)
     2179    {
     2180        PPDMAUDIOSTREAM pHstStream;
     2181        RTListForEach(&pThis->lstHstStreams, pHstStream, PDMAUDIOSTREAM, Node)
     2182            drvAudioStreamControlInternalBackend(pThis, pHstStream, enmCmd);
     2183    }
    21842184
    21852185    rc2 = RTCritSectLeave(&pThis->CritSect);
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